Revision: 4752
http://sourceforge.net/p/vexi/code/4752
Author: mkpg2
Date: 2014-11-23 17:56:31 +0000 (Sun, 23 Nov 2014)
Log Message:
-----------
DrawArea.marked
Modified Paths:
--------------
branches/vexi3/org.vexi-vexi.demo/src_poke/poke/core/canvas.t
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/tool/DrawArea.t
Modified: branches/vexi3/org.vexi-vexi.demo/src_poke/poke/core/canvas.t
===================================================================
--- branches/vexi3/org.vexi-vexi.demo/src_poke/poke/core/canvas.t
2014-11-23 17:44:34 UTC (rev 4751)
+++ branches/vexi3/org.vexi-vexi.demo/src_poke/poke/core/canvas.t
2014-11-23 17:56:31 UTC (rev 4752)
@@ -12,15 +12,21 @@
height="400"
backgroundFill=":image.block_mask_20x20"/>
<ui:Box height="50">
- <w:button text="Clear" id="clear"/>
+ <w:button text="Clear" id="clear" enabled="false"/>
<w:button text="Save" id="save"/>
<w:button text="Load" id="load"/>
<w:button text="Load Background" id="loadbg"/>
</ui:Box>
var suffix = "png";
+
+ $draw.marked ++= function(v){
+ cascade = v;
+ $clear.enabled = v;
+ };
$clear.action ++= function(v){
+ $draw.marked = false;
$draw.canvas.clear();
};
Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/tool/DrawArea.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/tool/DrawArea.t
2014-11-23 17:44:34 UTC (rev 4751)
+++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/tool/DrawArea.t
2014-11-23 17:56:31 UTC (rev 4752)
@@ -5,7 +5,8 @@
<w:bevel form="down" shrink="true"/>
<ui:Box layout="layer"
width="400"
- height="400" >
+ height="400"
+ id="outer" >
<ui:Box id="background"/>
<ui:Canvas id="canvas"
tile="false"
@@ -25,6 +26,7 @@
x0 = m.x-frameToThis.x;
y0 = m.y-frameToThis.y;
drawLine(x0,y0,x0,y0);
+ $outer.marked = true;
}
thisbox.Release1 ++= function(v){
@@ -53,11 +55,14 @@
var x1 = m.x-frameToThis.x;
var y1 = m.y-frameToThis.y;
drawLine(x0,y0,x1,y1);
+ $outer.marked = true;
x0 = x1;
y0 = y1;
}
}
</ui:Canvas>
+ thisbox.marked;
+
thisbox.backgroundFill ++= function(v){ $background.fill = v; };
thisbox.backgroundFill ++= function(){ return $background.fill; };
thisbox.canvas = $canvas;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn