Revision: 3796 http://vexi.svn.sourceforge.net/vexi/?rev=3796&view=rev Author: mkpg2 Date: 2010-02-10 01:10:02 +0000 (Wed, 10 Feb 2010)
Log Message: ----------- Expose the currently selected item widget. Modified Paths: -------------- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/option.t Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/option.t =================================================================== --- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/option.t 2010-02-08 19:29:25 UTC (rev 3795) +++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/option.t 2010-02-10 01:10:02 UTC (rev 3796) @@ -26,6 +26,9 @@ value = v.value; } } + + // make accessible + thisbox.selecteditem ++= static.selecteditemRead; // assign event traps KeyPressed ++= static.keypressEvent; @@ -44,6 +47,10 @@ </ui:box> + static.selecteditemRead = function() { + return trapee.v_listgroup?.selected; + }; + static.listgroupWrite = function(v) { var g = trapee.v_listgroup; if (g) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn