Difference between revisions of "Focus events"

From LinuxMCE
Jump to: navigation, search
m (remove pluto warning and spelling)
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>'''OnUp'''  
+
'''OnUp'''  
  
 
The user press the change focus to previous control.  
 
The user press the change focus to previous control.  
Line 21: Line 21:
 
'''OnCancel'''  
 
'''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.
+
The user wants to cancel all settings from current screen and if are more screens, to go to previous screen. Usually on '''''OnCancel''''' command the '''''$previous''''' command will follow.
  
 
'''OnFocus'''  
 
'''OnFocus'''  
Line 29: Line 29:
 
'''OnLostFocus'''  
 
'''OnLostFocus'''  
  
If special code should run when a button becames disable, you may override that event (for instance to play a small sound here)
+
If special code should run when a button becomes disable, you may override that event (for instance to play a small sound here)

Revision as of 01:19, 2 December 2008

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. Usually on OnCancel command the $previous command will follow.

OnFocus

If special code should run when a button is enable, you may override that event (for instance to play a small sound here)

OnLostFocus

If special code should run when a button becomes disable, you may override that event (for instance to play a small sound here)