This commit is contained in:
Zihan Chen
2016-12-13 05:00:35 -08:00
parent dc31e619c4
commit 0a13d582ff
@@ -27,13 +27,13 @@ func CreateMainWindow() : Window*
var window = new Window*(theme.CreateWindowStyle());
window.Text = "Hello, world!";
window.ClientSize = cast Size "x:480 y:320";
window.BoundsComposition.PreferredMinSize = cast Size "x:480 y:320";
window.ClientSize = {x:480 y:320};
window.BoundsComposition.PreferredMinSize = {x:480 y:320};
window.MoveToScreenCenter();
var label = new Label*(theme.CreateLabelStyle());
label.Text = "Welcom to GacUI Library!";
label.Font = cast FontProperties "fontFamily:{Segoe UI} size:32";
label.Font = {fontFamily:"Segoe UI" size:32};
window.AddChild(label);
return window;