Revision: 4600
http://sourceforge.net/p/vexi/code/4600
Author: clrg
Date: 2013-11-26 11:37:08 +0000 (Tue, 26 Nov 2013)
Log Message:
-----------
Don't use "text" cursor when interactive=false
Modified Paths:
--------------
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t
Modified:
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t
2013-11-26 11:28:51 UTC (rev 4599)
+++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t
2013-11-26 11:37:08 UTC (rev 4600)
@@ -44,6 +44,7 @@
</role.repeatable>
</ui:box>
+ thisbox.cursor = "text";
thisbox.v_cursor = $cursor;
thisbox.v_edit = $edit;
@@ -78,21 +79,24 @@
// temporarily delays the cursor flashing
$cursor.moved = true;
- }
+ };
/** activate cursor when focused */
- $edit.focused ++= function(v) { cascade = v; $cursor.repeat = v; }
+ $edit.focused ++= function(v) { cascade = v; $cursor.repeat = v; };
+ .util.redirect..addRedirect(thisbox, v_edit, "interactive",
"multiline", "textalign", "wraptext", "wrapwidth");
+
thisbox.cursorcolor ++= static.cursorcolorWrite;
- thisbox.cursor = "text";
- thisbox.enabled ++= static.enableWrite;
+ thisbox.enabled ++= static.setMouseCursor;
+ thisbox.interactive ++= static.setMouseCursor;
- .util.redirect..addRedirect(thisbox, v_edit, "interactive",
"multiline", "textalign", "wraptext", "wrapwidth");
-
</ui:box>
static.cursorcolorWrite = function(v) { cascade = v; trapee.v_cursor.fill
= v; }
- static.enableWrite = function(v) { cascade = v; trapee.cursor =
v?"text":null; }
+ static.setMouseCursor = function(v) {
+ cascade = v;
+ trapee.cursor = (v and trapee.interactive)?"text":null;
+ }
</vexi>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn