Difference between revisions of "Button events"

From LinuxMCE
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
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.  
+
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'''
+
Because Button is a non focus-able control, it will have standard events that any control has.
  
The user press the change focus to previous control.  
+
See [[non-focus events]].
  
'''OnDown'''
+
[[category: Programmer's Guide]]
 
+
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
+

Latest revision as of 18:13, 20 June 2008

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 a non focus-able control, it will have standard events that any control has.

See non-focus events.