How to build GUI-based applications in D ?

ashit via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 1 08:18:12 PDT 2017


On Tuesday, 1 August 2017 at 09:39:36 UTC, Daniel Kozak wrote:
> https://www.youtube.com/watch?v=5eUL8Z9AFW0
>
> https://github.com/buggins/dlangui

thank you Daniel.

i have tried Dlangui previously and had no luck. but this time i 
could successfully compile my first app. now, i can say level 
zero created.

i couldn't set control's width and height (Button widget) shows 
error. maybe it works a different way.
i used the following code instead, but no effect.

// create some widget to show in window
auto button1 = new Button("btn1", "OK"d).margins(50);
button1.minWidth = 200;
button1.minHeight = 50;
button1.maxWidth = 201;
button1.maxHeight = 51;

also i couldn't compile dlangide. it shows error like every time 
before:

D:\ashit\software\D Compiler\DlangUI\dlangide-master>dub run
Performing "debug" build using dmd for x86.
emsi_containers 0.5.3: target for configuration "library" is up 
to date.
libdparse 0.7.1-beta.7: building configuration "library"...
C:\Users\axar\AppData\Roaming\dub\packages\libdparse-0.7.1beta.7\libdparse\src\ dparse\lexer.d(1789,12): Error: module std.math import 'nextPow2' not found
dmd failed with exit code 1.





More information about the Digitalmars-d-learn mailing list