From 94f955a1d89d7a9fbea8974db7b482a8a6aaeb86 Mon Sep 17 00:00:00 2001 From: and3md Date: Sat, 7 Oct 2017 15:28:21 +0200 Subject: [PATCH] Added WindowFlag.ExpandSize to example1. --- examples/example1/src/example1.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/example1/src/example1.d b/examples/example1/src/example1.d index 5d56e5c4..9a66d204 100644 --- a/examples/example1/src/example1.d +++ b/examples/example1/src/example1.d @@ -266,7 +266,9 @@ extern (C) int UIAppMain(string[] args) { //} // create window - Window window = Platform.instance.createWindow("DlangUI Example 1", null, WindowFlag.Resizable, 800, 700); + //Window window = Platform.instance.createWindow("DlangUI Example 1", null, WindowFlag.Resizable, 800, 700); + // Expand window size if content is bigger than 800, 700 (change to above version if you want scrollbars and 800, 700 size) + Window window = Platform.instance.createWindow("DlangUI Example 1", null, WindowFlag.Resizable | WindowFlag.ExpandSize, 800, 700); // here you can see window or content resize mode //Window window = Platform.instance.createWindow("DlangUI Example 1", null, WindowFlag.Resizable, 400, 400); //window.windowOrContentResizeMode = WindowOrContentResizeMode.resizeWindow;