[tekui-devel] tekui: Some demos updated; Slider: simpler setup; Group: conside...

Timm S. Mueller tmueller at neoscientists.org
Fri Apr 11 00:30:26 CEST 2008


details:   http://hg.teklib.org/tekui/rev/e3dcae9594c9
changeset: 419:e3dcae9594c9
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Thu Apr 10 22:48:46 2008 +0200
description:
Some demos updated; Slider: simpler setup; Group: considers Width/Height modes
"auto", "fill", "free", "limit"; ScrollGroup: adapted to new slider default
properties

diffs (truncated from 533 to 100 lines):

diff -r 949057c16cab -r e3dcae9594c9 tek/app/ui/demo.lua
--- a/tek/app/ui/demo.lua	Thu Apr 10 14:28:43 2008 +0200
+++ b/tek/app/ui/demo.lua	Thu Apr 10 22:48:46 2008 +0200
@@ -48,8 +48,6 @@ ui.Application:new
 
 		ui.Window:new
 		{
-			MaxWidth = ui.HUGE,
-			MaxHeight = ui.HUGE,
 			Id = "notifications-window",
 			Title = "Notifications",
 			Status = "hidden",
@@ -65,6 +63,8 @@ ui.Application:new
 			{
 				ui.Group:new
 				{
+					Width = "free",
+					Height = "free",
 					Orientation = 1,
 					Legend = "Connections",
 					Children =
@@ -80,11 +80,12 @@ ui.Application:new
 								ui.Slider:new { HFreedom = true },
 								ui.Group:new
 								{
+									Width = "free",
 									Orientation = 1,
 									Children =
 									{
-										ui.Slider:new { HFreedom = true },
-										ui.Slider:new { HFreedom = true },
+										ui.Slider:new { HFreedom = true, Width = "free" },
+										ui.Slider:new { HFreedom = true, Width = "free" },
 									},
 								},
 							},
@@ -288,7 +289,7 @@ ui.Application:new
 												},
 											},
 										},
-										ui.Text:new { Label = "Groups demo", MaxWidth = ui.HUGE, VAlign = 1 },
+										ui.Text:new { Label = "Groups demo" },
 										ui.Text:new
 										{
 											Mode = "button",
@@ -305,7 +306,7 @@ ui.Application:new
 												},
 											},
 										},
-										ui.Text:new { Label = "Animation demo", MaxWidth = ui.HUGE, VAlign = 1 },
+										ui.Text:new { Label = "Animation demo" },
 										ui.Text:new {
 											Mode = "button",
 											Label = "Notification",
@@ -321,7 +322,7 @@ ui.Application:new
 												},
 											},
 										},
-										ui.Text:new { Label = "Notification demo", MaxWidth = ui.HUGE, VAlign = 1 },
+										ui.Text:new { Label = "Notification demo" },
 									},
 								},
 							},
diff -r 949057c16cab -r e3dcae9594c9 tek/app/ui/dynamic.lua
--- a/tek/app/ui/dynamic.lua	Thu Apr 10 14:28:43 2008 +0200
+++ b/tek/app/ui/dynamic.lua	Thu Apr 10 22:48:46 2008 +0200
@@ -22,6 +22,7 @@ ui.application:new
 						{
 							Orientation = 1,
 							Title = "Hallo",
+							Width = "free",
 							Children =
 							{
 								ui.slider:new
@@ -64,6 +65,7 @@ ui.application:new
 						ui.slider:new {
 							Id = "s3",
 							HFreedom = true,
+							Width = "free",
 							Position = { 0x8000, 0, 0x8000, 0, },
 							Notifications = {
 								["XPosition"] = {
@@ -127,6 +129,7 @@ ui.application:new
 				ui.slider:new
 				{
 					HFreedom = true,
+					Width = "free",
 					Notifications = {
 						["XPosition"] = {
 							[ui.NOTIFY_ALWAYS] = {
diff -r 949057c16cab -r e3dcae9594c9 tek/app/ui/gridalign.lua
--- a/tek/app/ui/gridalign.lua	Thu Apr 10 14:28:43 2008 +0200
+++ b/tek/app/ui/gridalign.lua	Thu Apr 10 22:48:46 2008 +0200
@@ -39,6 +39,7 @@ ui.application:new
 					{
 						ui.group:new
 						{
+							Width = "auto",
 							Legend = "Horiz",
 							Children =


More information about the tekui-devel mailing list