Revision: 2265
          http://vexi.svn.sourceforge.net/vexi/?rev=2265&view=rev
Author:   clrg
Date:     2007-09-20 05:35:13 -0700 (Thu, 20 Sep 2007)

Log Message:
-----------
Always start as enabled unless it is explicitly set to false + freshen up 
focusable docs

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t    
2007-09-20 12:26:09 UTC (rev 2264)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t    
2007-09-20 12:35:13 UTC (rev 2265)
@@ -11,17 +11,20 @@
             The following state properties are meaningful:
             
             * enabled   - Whether this widget is 'on'; only an enabled
-                          widget may be focused
-                          (Defaults to 'true')
+              (true)      widget may be focused
             
             * focusable - If 'true' widget desires focus, otherwise it
-                          rejects focus
-                          (Defaults to 'true')
+              (true)      rejects focus
             
             * focused   - Set 'true' when the widget is focused and
-                          conversely set to 'false' when defocused
-                          (Defaults to 'false')
+              (false)     conversely set to 'false' when defocused
             
+            * nextfocus - The next available focusable widget
+              (null)
+            
+            * prevfocus - The previous available focuslable widget
+              (null)
+            
             All of these properties may be manually put to in order to
             arbitrarily update their focused (sic) state.
         </details>
@@ -29,9 +32,9 @@
     
     <ui:box>
         
-        thisbox.enabled = enabled;  // whether a focusable is enabled
+        thisbox.enabled = enabled == null ? true : enable;
         thisbox.focusable  = true;  // whether a focusable may be focused
-        thisbox.focused    = null;  // whether a focusable is focused
+        thisbox.focused    = false; // whether a focusable is focused
         thisbox.nextfocus  = null;  // read for the focus after thisbox on the 
surface
         thisbox.prevfocus  = null;  // read for the focus before thisbox on 
the surface
         thisbox.oldsurface = null;  // pseudo-private variable for tracking 
surface changes


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to