Dlang UI - making widget extend to the bounds of the window
Vadim Lopatin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Apr 18 00:06:43 PDT 2016
On Saturday, 16 April 2016 at 11:46:09 UTC, stunaep wrote:
> 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
In TableLayout there is a bug #113 which prevents extending of
table layout content to parent size.
For other widgets FILL_PARENT should work ok.
See dlangui/examples/d3d and dlangui/examples/opengl for samples
of OpenGL drawing on widget which is being resized to whole
window.
More information about the Digitalmars-d-learn
mailing list