Thread overview | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 01, 2017 How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
what is the simplest library to create gui applications in D? i want to create gui applications but couldnt configure the tools so far. i tried to install DFL several times, but it shows some errors while installing (that bold red lables showing : depreacated, depreacated, ... ) i dont need to build something advanced or so, only that common and simple elements like: buttons, labels, textboxs, ... i really like D's syntax (C, C++, C#), but i have nothing to do with command line. the good thing about C# (& WPF) is: double click on installer, start design your app. |
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ashit Attachments:
| https://www.youtube.com/watch?v=5eUL8Z9AFW0 https://github.com/buggins/dlangui On Tue, Aug 1, 2017 at 11:31 AM, ashit via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > what is the simplest library to create gui applications in D? > i want to create gui applications but couldnt configure the tools so far. > i tried to install DFL several times, but it shows some errors while > installing (that bold red lables showing : depreacated, depreacated, ... ) > > i dont need to build something advanced or so, only that common and simple elements like: buttons, labels, textboxs, ... > > i really like D's syntax (C, C++, C#), but i have nothing to do with > command line. > the good thing about C# (& WPF) is: double click on installer, start > design your app. > > |
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ashit | ashit wrote: > what is the simplest library to create gui applications in D? > i want to create gui applications but couldnt configure the tools so far. > i tried to install DFL several times, but it shows some errors while installing (that bold red lables showing : depreacated, depreacated, ... ) > > i dont need to build something advanced or so, only that common and simple elements like: buttons, labels, textboxs, ... > > i really like D's syntax (C, C++, C#), but i have nothing to do with command line. > the good thing about C# (& WPF) is: double click on installer, start design your app. Adam Ruppe has minigui in his arsd[0] repo. and minigui_xml to make interface creation easier. it is not really well-documented yet, tho, so you will prolly have to figure some things on your own. [0] https://github.com/adamdruppe/arsd |
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ashit Attachments:
| I use GtkD (with GStreamerD) for my GUI applications written in D. https://gtkd.org/ On Tue, 2017-08-01 at 09:31 +0000, ashit via Digitalmars-d-learn wrote: > what is the simplest library to create gui applications in D? > i want to create gui applications but couldnt configure the tools > so far. > i tried to install DFL several times, but it shows some errors > while installing (that bold red lables showing : depreacated, > depreacated, ... ) > > i dont need to build something advanced or so, only that common and simple elements like: buttons, labels, textboxs, ... > > i really like D's syntax (C, C++, C#), but i have nothing to do > with command line. > the good thing about C# (& WPF) is: double click on installer, > start design your app. > -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ashit | On Tuesday, 1 August 2017 at 09:31:32 UTC, ashit wrote: > what is the simplest library to create gui applications in D? > i want to create gui applications but couldnt configure the tools so far. [snip] I recommend you check out the D widget toolkit (DWT). DWT is a library for creating cross-platform GUI applications. It's a port of the SWT Java library from Eclipse. The key advantages of DWT are; 1. Extensive API and examples from SWT that can be searched with your Browser 2. Statically linked (don't need an external DLL) 3. Easy to learn and use Here is the dub package for DWT: https://code.dlang.org/packages/dwtlib See more features in the DWT forum: https://forum.dlang.org/group/dwt Here are the various GUIs for the D language: https://wiki.dlang.org/GUI_Libraries |
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | 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. |
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Tuesday, 1 August 2017 at 09:44:48 UTC, ketmar wrote:
> ashit wrote:
>
>> [...]
>
> Adam Ruppe has minigui in his arsd[0] repo. and minigui_xml to make interface creation easier. it is not really well-documented yet, tho, so you will prolly have to figure some things on your own.
>
> [0] https://github.com/adamdruppe/arsd
On Tuesday, 1 August 2017 at 09:44:48 UTC, ketmar wrote:
thank you
|
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Tuesday, 1 August 2017 at 10:09:56 UTC, Russel Winder wrote:
> I use GtkD (with GStreamerD) for my GUI applications written in D.
>
> https://gtkd.org/
>
thank you Russel.
i have tried to config that several months ago, but no luck.
i should try that once again.
|
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to JamesD | On Tuesday, 1 August 2017 at 14:57:50 UTC, JamesD wrote:
> On Tuesday, 1 August 2017 at 09:31:32 UTC, ashit wrote:
>> what is the simplest library to create gui applications in D?
>> i want to create gui applications but couldnt configure the tools so far.
> [snip]
>
> I recommend you check out the D widget toolkit (DWT).
> DWT is a library for creating cross-platform GUI applications.
> It's a port of the SWT Java library from Eclipse.
>
> The key advantages of DWT are;
>
> 1. Extensive API and examples from SWT that can be searched with your Browser
> 2. Statically linked (don't need an external DLL)
> 3. Easy to learn and use
>
> Here is the dub package for DWT:
> https://code.dlang.org/packages/dwtlib
>
> See more features in the DWT forum:
> https://forum.dlang.org/group/dwt
>
> Here are the various GUIs for the D language:
> https://wiki.dlang.org/GUI_Libraries
thank you James
i should try that.
i was always enjoy the pure and efficiency of C. that made me stubborn to learn java.
but now, as i look behind i know i was wrong. (that caused i miss android).
i need to rethink my strategy.
but instead of that C brought me to the MCU's world.
|
August 01, 2017 Re: How to build GUI-based applications in D ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ashit | On Tuesday, 1 August 2017 at 15:18:12 UTC, ashit wrote:
> i couldn't set control's width and height (Button widget) shows error. maybe it works a different way.
1. Try layoutHeight/width. Remember to set it for the main widget too, not just the children of it.
2. DlangUI is not intended to define sizes in pixels as a standard practice. Instead, use layouts and layout sizes. This is intended to courage you to make your program resolution-agnostic.
But I'm a beginner at this topic too. Take these with a grain of salt
|
Copyright © 1999-2021 by the D Language Foundation