Dlang UI - making widget extend to the bounds of the window

stunaep via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 16 04:46:09 PDT 2016


On Saturday, 16 April 2016 at 08:20:33 UTC, stunaep wrote:
> On Friday, 15 April 2016 at 10:33:35 UTC, Vadim Lopatin wrote:
>> [...]
>
> I am doing that. I think it has to do with my high dpi because 
> I'm using a 4k monitor.
>
> If I use Modal window flag:
>>[...]
> http://i.imgur.com/FJgPq8U.png
>
> If I use resizable:
>>[...]
> http://i.imgur.com/PsPwoSN.jpg

Actually, that is with the opengl area set to a specific size. 
Here is using fill:

>Window window = Platform.instance.createWindow("DlangUI OpenGL 
>Example", null, WindowFlag.Modal, 1250, 1250);
http://i.imgur.com/exAyjI0.png

>    Window window = Platform.instance.createWindow("DlangUI 
> OpenGL Example", null, WindowFlag.Resizable, 1250, 1250);
http://i.imgur.com/R7oxBa0.jpg

http://pastebin.com/qqbfQLvN


More information about the Digitalmars-d-learn mailing list