Button events

From LinuxMCE
Revision as of 08:16, 11 April 2006 by Wikiadmin (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.
Button is a focus control will have specific events. Event the button get the specified focus event, if the current button haven't focus, the event will be ignored.

The focus events are:

OnUp

The user press the change focus to previous control.

OnDown

The user press the change focus to next focus control.

OnLeft

The user wants to decrease the value shown to the control to be decreased.

OnRight

The user wants to decrease the value shown to the control to be increased.

OnEnter

The user wants to apply all settings from current screen and if are more screens, to go to following screen. Ussually on OnEnter command the $next command will follow.

OnCancel

The user wants to cancel all settings from current screen and if are more screens, to go to previous screen. Ussually on OnCancel command the $previous command will follow.


Because Button is too a non focus control, it will have standard events that any control:

OnInit

That event appears before first paint. It may be used to call a specified script. That may be useful even the actual file is fixed form.

OnPaint

That event appears on any display change, it may be used to refresh form status

OnClose

OnClose event may be used before changing the screen