Revision: 2134
http://vexi.svn.sourceforge.net/vexi/?rev=2134&view=rev
Author: clrg
Date: 2007-09-06 14:23:35 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
Rename splitpane demo tab and update it to Vexi 3 splitpane
Added Paths:
-----------
trunk/widgets/org.vexi.demo/org/vexi/demo/splitpane_demo.t
Copied: trunk/widgets/org.vexi.demo/org/vexi/demo/splitpane_demo.t (from rev
2069, trunk/widgets/org.vexi.demo/org/vexi/demo/splitpane.t)
===================================================================
--- trunk/widgets/org.vexi.demo/org/vexi/demo/splitpane_demo.t
(rev 0)
+++ trunk/widgets/org.vexi.demo/org/vexi/demo/splitpane_demo.t 2007-09-06
21:23:35 UTC (rev 2134)
@@ -0,0 +1,103 @@
+<!-- Copyright 2006 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.widget">
+ <ui:box orient="vertical">
+ <scrollpane orient="vertical" autohide="true">
+ <ui:box vshrink="true">
+ <ui:box text="Drag the Dividers" />
+ <check id="lr_switch" text="Enable liveresize" />
+ </ui:box>
+ <splitpane id="sp_h" master="$sp_v" orient="horizontal">
+ <bevel id="inner1" fill="white" form="down" layout="place"
width="100">
+ <border align="center" border="black" depth="1"
shrink="true" />
+ </bevel>
+ <splitpane id="sp_v" master="$inner3" orient="vertical">
+ <bevel id="inner2" fill="white" form="down" layout="place"
height="100">
+ <border align="center" border="black" depth="1"
shrink="true" />
+ </bevel>
+ <bevel id="inner3" fill="white" form="down" layout="place">
+ <border align="center" border="black" depth="1"
shrink="true" />
+ </bevel>
+ <bevel id="inner4" fill="white" form="down" layout="place"
height="100">
+ <border align="center" border="black" depth="1"
shrink="true" />
+ </bevel>
+ </splitpane>
+ <bevel id="inner5" fill="white" form="down" layout="place"
width="100">
+ <border align="center" border="black" depth="1"
shrink="true" />
+ </bevel>
+ </splitpane>
+ <ui:box vshrink="true">
+ <ui:box align="right" text="Set Minimum Width" />
+ <spin id="minwidth" align="left" enabled="false" interval="2"
max="100" margin="6 10" shrink="true" value="0" />
+ <ui:box align="left" shrink="true" text="px" />
+ <ui:box width="10" />
+ <ui:box align="right" text="Set Minimum Height" />
+ <spin id="minheight" align="left" enabled="false" interval="2"
max="100" margin="6 10" shrink="true" value="0" />
+ <ui:box align="left" shrink="true" text="px" />
+ </ui:box>
+ </scrollpane>
+
+ var active = null;
+
+ var pressFunc = function(v)
+ {
+ cascade = v;
+
+ // select active box
+ trapee.fill = "red";
+ if (active) active.fill = "white";
+ active = active == trapee ? null : trapee;
+ /*
+ // (de)activate controls
+ if (active)
+ {
+ $minwidth.enabled = true;
+ $minheight.enabled = true;
+ $minwidth.value = active[0].minwidth;
+ $minheight.value = active[0].minheight;
+ }
+ else
+ {
+ $minwidth.enabled = false;
+ $minheight.enabled = false;
+ $minwidth.value = 0;
+ $minheight.value = 0;
+ }
+ */
+ }
+
+ $inner1.Press1 ++= pressFunc;
+ $inner2.Press1 ++= pressFunc;
+ $inner3.Press1 ++= pressFunc;
+ $inner4.Press1 ++= pressFunc;
+ $inner5.Press1 ++= pressFunc;
+
+ $lr_switch.selected ++= function(v)
+ {
+ $sp_h.liveresize = v;
+ $sp_v.liveresize = v;
+ cascade = v;
+ }
+
+ $minwidth.value ++= function(v)
+ {
+ cascade = v;
+ if (active)
+ {
+ active.minwidth = v;
+ active[0].minwidth = v;
+ }
+ }
+
+ $minheight.value ++= function(v)
+ {
+ cascade = v;
+ if (active)
+ {
+ active.minheight = v;
+ active[0].minheight = v;
+ }
+ }
+
+ </ui:box>
+</vexi>
\ No newline at end of file
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn