www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GUI development

reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
What is the easiest way to create GUI applications in D?
Like drag n drop style? IDE support?

(We're using Windows 10 in our organization, so a 
Windows-friendly solution would be nice)

Thanks!
Sep 21 2020
next sibling parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
Gtkd would be the closest thing to "drag and drop", if you use the glade designer to create your guis. Gtkd is maintained and mature. Gtk+ can be used for commercial purposes. https://gtkd.org/ https://stackoverflow.com/questions/32516092/how-to-show-hello-world-with-glade-gtkd-and-the-d-programming-language Those are some helpers to associate .glade files with d classes. https://github.com/burner/gladeD https://github.com/aferust/makegtkdclass
Sep 21 2020
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 21 September 2020 at 09:10:49 UTC, Ferhat Kurtulmuş 
wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
Gtkd would be the closest thing to "drag and drop", if you use the glade designer to create your guis. Gtkd is maintained and mature. Gtk+ can be used for commercial purposes. https://gtkd.org/ https://stackoverflow.com/questions/32516092/how-to-show-hello-world-with-glade-gtkd-and-the-d-programming-language Those are some helpers to associate .glade files with d classes. https://github.com/burner/gladeD https://github.com/aferust/makegtkdclass
Splendid! I'll try that. Thanks!
Sep 21 2020
prev sibling next sibling parent reply =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KTQsNC0?= =?UTF-8?B?0LXQtdCy?= writes:
On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
Sciter, may be: https://sciter.com/
Sep 21 2020
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 21 September 2020 at 09:15:21 UTC, Виталий Фадеев 
wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
Sciter, may be: https://sciter.com/
Will check it out. Looks nice
Sep 21 2020
prev sibling next sibling parent reply Martyn <norealaddreass somewhere.com> writes:
On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
I have toyed with GtkD and is very promising and enjoyable. You have Glade (installed separately) that is the interface designer. With my current project, however, I am writing it all in D code... very easy and readable so far. :-) However, I have only compiled/run my examples on Linux. I do not know how they would turn out when running on Windows 10. I have heard GTK doesn't always look as nice on Windows or Apple but this may have been common in the past... or depends on what you are adding to the Window/Form. (It seems like we are in a similar boat about using D on Windows systems. I have recently created a question about vibe.d on windows. lol. I am hoping that Dlang, for the most part, will be my answer to the 'one great language' of mine for multiple platforms)
Sep 21 2020
next sibling parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Monday, 21 September 2020 at 09:38:23 UTC, Martyn wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
I have toyed with GtkD and is very promising and enjoyable. You have Glade (installed separately) that is the interface designer. With my current project, however, I am writing it all in D code... very easy and readable so far. :-) However, I have only compiled/run my examples on Linux. I do not know how they would turn out when running on Windows 10. I have heard GTK doesn't always look as nice on Windows or Apple but this may have been common in the past... or depends on what you are adding to the Window/Form. (It seems like we are in a similar boat about using D on Windows systems. I have recently created a question about vibe.d on windows. lol. I am hoping that Dlang, for the most part, will be my answer to the 'one great language' of mine for multiple platforms)
Yes, GtkD's looknfeel does not feel native on Windows. But it has CSS support. Recently, I was playing around with theming, and got successfully an OSX looknfeel on win 10 using https://github.com/vinceliuice/Sierra-gtk-theme. There is Win10 themes also available (https://www.gnome-look.org/p/1216281/). Another issue to consider would be file dialogs. Gtk has its own generic file dialog, but there is an option to prefer native file dialogs on Windows.
Sep 21 2020
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 21 September 2020 at 09:38:23 UTC, Martyn wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 [...]
I have toyed with GtkD and is very promising and enjoyable. You have Glade (installed separately) that is the interface designer. With my current project, however, I am writing it all in D code... very easy and readable so far. :-) [...]
I tried designing using Glade and used it with gtkD. It worked fine on Windows actually. Not native look, but that doesn't matter imho.
Sep 21 2020
parent reply Oleg B <code.viator gmail.com> writes:
On Monday, 21 September 2020 at 17:46:02 UTC, Imperatorn wrote:
 On Monday, 21 September 2020 at 09:38:23 UTC, Martyn wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 [...]
I have toyed with GtkD and is very promising and enjoyable. You have Glade (installed separately) that is the interface designer. With my current project, however, I am writing it all in D code... very easy and readable so far. :-) [...]
I tried designing using Glade and used it with gtkD. It worked fine on Windows actually. Not native look, but that doesn't matter imho.
I think you may interest in additional aux library for gtkd (for using signals and automatic getting widgets from glade files) https://github.com/deviator/gtkui
Sep 21 2020
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 21 September 2020 at 19:14:05 UTC, Oleg B wrote:
 On Monday, 21 September 2020 at 17:46:02 UTC, Imperatorn wrote:
 On Monday, 21 September 2020 at 09:38:23 UTC, Martyn wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn 
 wrote:
 [...]
I have toyed with GtkD and is very promising and enjoyable. You have Glade (installed separately) that is the interface designer. With my current project, however, I am writing it all in D code... very easy and readable so far. :-) [...]
I tried designing using Glade and used it with gtkD. It worked fine on Windows actually. Not native look, but that doesn't matter imho.
I think you may interest in additional aux library for gtkd (for using signals and automatic getting widgets from glade files) https://github.com/deviator/gtkui
Cool, is it like a "strongly typed" access thing? Do you match the variable name with the glade element name and it "just works" or something like that?
Sep 21 2020
prev sibling next sibling parent Antonio <acb ggmail.com> writes:
On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
Hi! Don't forget https://gtkdcoding.com/ Antonio.
Sep 21 2020
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
DWT [1] works on Windows and Linux. It uses the native drawing operations of the platform. It will have the same look and feel as designed for the platform. On Linux it uses GTK. It does not have a GUI builder application. [1] https://github.com/d-widget-toolkit/dwt -- /Jacob Carlborg
Sep 21 2020
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 21 September 2020 at 14:46:10 UTC, Jacob Carlborg 
wrote:
 On Monday, 21 September 2020 at 08:39:44 UTC, Imperatorn wrote:
 What is the easiest way to create GUI applications in D?
 Like drag n drop style? IDE support?

 (We're using Windows 10 in our organization, so a 
 Windows-friendly solution would be nice)

 Thanks!
DWT [1] works on Windows and Linux. It uses the native drawing operations of the platform. It will have the same look and feel as designed for the platform. On Linux it uses GTK. It does not have a GUI builder application. [1] https://github.com/d-widget-toolkit/dwt -- /Jacob Carlborg
Cool, I'll take a look. Any "getting started" app you recommend?
Sep 21 2020
parent Jacob Carlborg <doob me.com> writes:
On 2020-09-21 19:43, Imperatorn wrote:

 Cool, I'll take a look. Any "getting started" app you recommend?
The repository contains a bunch of snippets [1], showing off various features. DWT is a port of the Eclipse library SWT [2]. Any documentation or examples for SWT should be applicable to DWT as well. [1] https://github.com/d-widget-toolkit/dwt/tree/master/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets [2] https://www.eclipse.org/swt/ -- /Jacob Carlborg
Sep 22 2020