Revision: 1910
http://svn.sourceforge.net/vexi/?rev=1910&view=rev
Author: clrg
Date: 2007-07-03 07:14:45 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Buttons now align text centrally by default
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/button.t
widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/button.t
widgets/trunk/org.vexi.widgets/src/vexi/widget/button.t
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/button.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/button.t
2007-07-03 10:03:55 UTC (rev 1909)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/button.t
2007-07-03 14:14:45 UTC (rev 1910)
@@ -8,12 +8,24 @@
<clickable />
<selectable />
<ui:box>
- selected ++= static.selectFunc;
+
+ thisbox.selected ++= static.selectFunc;
thisbox.textalign ++= static.textalignFunc;
+ thisbox.th_content ++= static.contentFunc;
+
</ui:box>
+ static.contentFunc = function(v)
+ {
+ cascade = v;
+ v.align = trapee.textalign;
+ }
+
/** only activate selection if part of a button group */
- static.selectFunc = function(v) { cascade = trapee.groupref ? v : false; }
+ static.selectFunc = function(v)
+ {
+ cascade = trapee.groupref ? v : false;
+ }
static.textalignFunc = function(v)
{
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/button.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/button.t
2007-07-03 10:03:55 UTC (rev 1909)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/button.t
2007-07-03 14:14:45 UTC (rev 1910)
@@ -8,7 +8,6 @@
</focusborder>
thisbox.th_focus = $focus;
- thisbox.th_content = null;
active ++= static.activeFunc;
enabled ++= static.enableFunc;
Modified: widgets/trunk/org.vexi.widgets/src/vexi/widget/button.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/vexi/widget/button.t 2007-07-03
10:03:55 UTC (rev 1909)
+++ widgets/trunk/org.vexi.widgets/src/vexi/widget/button.t 2007-07-03
14:14:45 UTC (rev 1910)
@@ -15,7 +15,7 @@
</usage>
</meta:doc>
- <ui:box redirect="$content" shrink="true">
+ <ui:box redirect="$content" shrink="true" textalign="center">
<pad id="margin">
<button id="widget">
th_content = $content;
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn