Difference between revisions of "Button events"

From LinuxMCE
Jump to: navigation, search
 
Line 1: Line 1:
 
<table width="100%"> <tr><td bgcolor="#FFCFCF">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.</td></tr> </table>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.  
 
<table width="100%"> <tr><td bgcolor="#FFCFCF">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.</td></tr> </table>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:
+
See which are [[focus events]]
 
+
'''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.
+
  
  

Revision as of 08:17, 11 April 2006

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.

See which are focus events


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