[tekui-devel] tekui: Re-enabled parent redraw after copy

hg-notify at neoscientists.org hg-notify at neoscientists.org
Tue Feb 5 02:46:01 CET 2008


details:   http://hg.teklib.org/tekui/rev/22aea1491da4
changeset: 349:22aea1491da4
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Wed Jan 30 01:14:21 2008 +0100
description:
Re-enabled parent redraw after copy

diffs (69 lines):

diff -r d522c8ea09b1 -r 22aea1491da4 tek/app/ui/groups.lua
--- a/tek/app/ui/groups.lua	Tue Jan 29 20:43:09 2008 +0100
+++ b/tek/app/ui/groups.lua	Wed Jan 30 01:14:21 2008 +0100
@@ -106,6 +106,23 @@ ui.application:new
 						ui.button:new { Label = "11111111111111", HMax = true },
 					},
 				},
+				ui.group:new
+				{
+					Orientation = 1,
+					Legend = "Relative Sizes",
+					Children =
+					{
+						ui.button:new { Label = "1", HMax = true },
+						ui.spacer:new { },
+						ui.button:new { Label = "12", HMax = true },
+						ui.spacer:new { },
+						ui.button:new { Label = "123", HMax = true },
+						ui.spacer:new { },
+						ui.button:new { Label = "1234", HMax = true },
+						ui.spacer:new { },
+						ui.button:new { Label = "12345", HMax = true },
+					},
+				},
 			},
 		},
 	},
diff -r d522c8ea09b1 -r 22aea1491da4 tek/app/ui/vgroup.lua
--- a/tek/app/ui/vgroup.lua	Tue Jan 29 20:43:09 2008 +0100
+++ b/tek/app/ui/vgroup.lua	Wed Jan 30 01:14:21 2008 +0100
@@ -17,20 +17,16 @@ ui.application:new
 					Legend = "Virtual Group",
 					Width = 500,
 					Height = 500,
-					GridW = 2,
 					Children = {
 						ui.Button:new { HMax = true, VMax = true, Label = "foo" },
-						ui.Button:new { HMax = true, VMax = true, Label = "foo" },
-						ui.Button:new { HMax = true, VMax = true, Label = "foo" },
+						ui.Handle:new { },
 						ui.ScrollGroup:new {
 							Legend = "Virtual Group",
 							Width = 500,
 							Height = 500,
-							GridW = 2,
 							Children = {
 								ui.Button:new { HMax = true, VMax = true, Label = "foo" },
-								ui.Button:new { HMax = true, VMax = true, Label = "foo" },
-								ui.Button:new { HMax = true, VMax = true, Label = "foo" },
+								ui.Handle:new { },
 								ui.ScrollGroup:new {
 									Legend = "Virtual Group",
 									Width = 500,
diff -r d522c8ea09b1 -r 22aea1491da4 tek/class/ui/area.lua
--- a/tek/class/ui/area.lua	Tue Jan 29 20:43:09 2008 +0100
+++ b/tek/class/ui/area.lua	Wed Jan 30 01:14:21 2008 +0100
@@ -184,9 +184,9 @@ function Area:layout(x0, y0, x1, y1, mar
 					ca[key] = { dx, dy, Region.new(s1, s2, s3, s4) }
 				end
 				-- redraw background:
-				-- if self.Parent then
-				-- 	self.Parent.Redraw = true
-				-- end
+				if self.Parent then
+					self.Parent.Redraw = true
+				end
 			end
 
 			if dw > 0 or dh > 0 then


More information about the tekui-devel mailing list