Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Dear All,

I have create the frame buttons(5),but I have no idea how to use the frame button,

please provide some information how handle the buttons.

We are displaying the frame button using this API,

IDisplay_FrameButton( pMe->a.m_pIDisplay, &qrc, FALSE, MAKE_RGB(0x1f, 0x1f, 0xf0));

Regards,
Sri Anu.

I think this will only display button, it is not a contol so i think can not handle events and can be used only for display.

I think this will only display button, it is not a contol so i think can not handle events and can be used only for display.

Dear Friend,
Thank you for your info,but I need more information on the following.
IDisplay_FrameButton( pMe->a.m_pIDisplay, &qrc, FALSE, MAKE_RGB(0x1f, 0x1f, 0xf0));
I am using above specified API only to display,but not to do any action.I want to have some information on how to do the button actions and events to handle them.
button actions:
1)If you press once it has to go to next display screen(navigation)
2)If press button specified action has to be started else stopped etc.
Regards,
Sri Anu.

Dear Friend,
Thank you for your info,but I need more information on the following.
IDisplay_FrameButton( pMe->a.m_pIDisplay, &qrc, FALSE, MAKE_RGB(0x1f, 0x1f, 0xf0));
I am using above specified API only to display,but not to do any action.I want to have some information on how to do the button actions and events to handle them.
button actions:
1)If you press once it has to go to next display screen(navigation)
2)If press button specified action has to be started else stopped etc.
Regards,
Sri Anu.

anu66 wrote:Dear Friend,
Thank you for your info,but I need more information on the following.
IDisplay_FrameButton( pMe->a.m_pIDisplay, &qrc, FALSE, MAKE_RGB(0x1f, 0x1f, 0xf0));
I am using above specified API only to display,but not to do any action.I want to have some information on how to do the button actions and events to handle them.
button actions:
1)If you press once it has to go to next display screen(navigation)
2)If press button specified action has to be started else stopped etc.
Regards,
Sri Anu.
Can you please specify the layout of your page?
May be you can put an invisible control(or transparency=100) that can take focus and fire the required event.

anu66 wrote:Dear Friend,
Thank you for your info,but I need more information on the following.
IDisplay_FrameButton( pMe->a.m_pIDisplay, &qrc, FALSE, MAKE_RGB(0x1f, 0x1f, 0xf0));
I am using above specified API only to display,but not to do any action.I want to have some information on how to do the button actions and events to handle them.
button actions:
1)If you press once it has to go to next display screen(navigation)
2)If press button specified action has to be started else stopped etc.
Regards,
Sri Anu.
Can you please specify the layout of your page?
May be you can put an invisible control(or transparency=100) that can take focus and fire the required event.

Dear friend,
I did not get what do u need ,but my requirement is with ui development.
In my display screen I have created 5 buttons .
how to write the mouse click event for those buttons, and what are the handle events are available for buttons.
please give me suggestion.
Regards,
Sri Anu

Dear friend,
I did not get what do u need ,but my requirement is with ui development.
In my display screen I have created 5 buttons .
how to write the mouse click event for those buttons, and what are the handle events are available for buttons.
please give me suggestion.
Regards,
Sri Anu

Ok
I display_framebutton() will only create the button layout but it is not any control and can not handle events like itextctl, istatic etc.
As you are targetting for touch phones then your application will get EVT_POINTER_* events when touching anywhere on device. You can get the X.Y postion of where you touched using the helper function AEE_POINTER_GET_XY(). This way you can handle events for your buttons.
please refer brew api ref. for more details on EVT_POINTER events.

Ok
I display_framebutton() will only create the button layout but it is not any control and can not handle events like itextctl, istatic etc.
As you are targetting for touch phones then your application will get EVT_POINTER_* events when touching anywhere on device. You can get the X.Y postion of where you touched using the helper function AEE_POINTER_GET_XY(). This way you can handle events for your buttons.
please refer brew api ref. for more details on EVT_POINTER events.