digitalmars.D.learn - gtkD problems and general gui question.
- %u (40/40) Oct 18 2011 Hello. I downloaded gtkD MS Windows installer, and I tried to
- Jordi Sayol (8/13) Oct 18 2011 There is not GtkD MS Windows installer on gtkd site, You've installed gt...
- Jordi Sayol (9/22) Oct 18 2011 If you want GtkD out of the box, there are compiled packages ready for l...
- Adrian Mercieca (5/5) Oct 22 2011 Hi all,
- Jordi Sayol (7/14) Oct 24 2011 Here You can find a GtkD tutorial in German and it's translation to Engl...
- Adrian Mercieca (4/19) Oct 27 2011 Hi,
- Nick Sabalausky (6/9) Oct 24 2011 IMO, GTK itself (ie, not just gtkD) is terrbile from an end-user standpo...
- Andrej Mitrovic (12/13) Oct 24 2011 In reality you don't even need to use native controls to create a true
- Nick Sabalausky (13/28) Oct 24 2011 It's difficult to get all the subtle details right. For example, if you'...
Hello. I downloaded gtkD MS Windows installer, and I tried to compile one of the examples shown on the gtkD website: http://www.dsource.org/projects/gtkd The example is below along with the problem: import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello World"); win.setDefaultSize(200, 100); win.add(new Label("Hello World")); win.showAll(); Main.run(); } When I compile the above code, I get the following problem: $ dmd HelloGUI.d HelloGUI.d(1): Error: module MainWindow is in file 'gtk\MainWindow.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import If I look at my path I see that the path to gtk was installed by the windows installer: /usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Wi ndows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System3 2/WindowsPowerShell/v1.0:/cygdrive/c/D/dmd2/windows/bin:/cygdrive/c /D/dm/bin:/cygdrive/c/D/dmd/windows/bin:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/c/Program Files (x86)/GTK2- Runtime/bin:/usr/lib/lapack My dmd version is: $ dmd -v DMD32 D Compiler v2.055 Copyright (c) 1999-2011 by Digital Mars written by Walter Bright Documentation: http://www.digitalmars.com/d/2.0/index.html Usage: Finally, is gtkD the way to go when it comes to learning gui with D? Which gui is the most popular with D? Which one has a future? And which is the easiest to learn? thanks.
Oct 18 2011
Al 18/10/11 16:44, En/na %u ha escrit:Hello. I downloaded gtkD MS Windows installer, and I tried to compile one of the examples shown on the gtkD website: =20 http://www.dsource.org/projects/gtkd =20There is not GtkD MS Windows installer on gtkd site, You've installed gtk= + runtime. So, you have to compile and install GtkD yourself on your system. Take a look at http://dsource.org/forums/viewtopic.php?t=3D5129 Regards, --=20 Jordi Sayol
Oct 18 2011
Al 18/10/11 17:08, En/na Jordi Sayol ha escrit:Al 18/10/11 16:44, En/na %u ha escrit:tk+ runtime.Hello. I downloaded gtkD MS Windows installer, and I tried to compile one of the examples shown on the gtkD website: http://www.dsource.org/projects/gtkd=20 There is not GtkD MS Windows installer on gtkd site, You've installed g==20 So, you have to compile and install GtkD yourself on your system. =20 Take a look at http://dsource.org/forums/viewtopic.php?t=3D5129 =20If you want GtkD out of the box, there are compiled packages ready for li= nux on gtkd site: http://www.dsource.org/projects/gtkd/wiki/DebianPackages http://www.dsource.org/projects/gtkd/wiki/FedoraPackages Regards, --=20 Jordi Sayol
Oct 18 2011
Hi all, I would be interested in having a closer look at gtkD. Is there any documentation/tutorial available anywhere? Thanks. On Tue, 18 Oct 2011 14:44:24 +0000, %u wrote:
Oct 22 2011
Al 23/10/11 07:35, En/na Adrian Mercieca ha escrit:Hi all, =20 I would be interested in having a closer look at gtkD. Is there any documentation/tutorial available anywhere? =20 Thanks. =20Here You can find a GtkD tutorial in German and it's translation to Engli= sh (this last one may be improved). http://www.dsource.org/forums/viewtopic.php?t=3D5525 Regards, --=20 Jordi Sayol
Oct 24 2011
On Mon, 24 Oct 2011 13:15:57 +0200, Jordi Sayol wrote:Al 23/10/11 07:35, En/na Adrian Mercieca ha escrit:Hi, Thanks for the link; much appreciated. - Adrian.Hi all, I would be interested in having a closer look at gtkD. Is there any documentation/tutorial available anywhere? Thanks.Here You can find a GtkD tutorial in German and it's translation to English (this last one may be improved). http://www.dsource.org/forums/viewtopic.php?t=5525 Regards,
Oct 27 2011
"%u" <foo bar.com> wrote in message news:j7k3c7$25jg$1 digitalmars.com...Finally, is gtkD the way to go when it comes to learning gui with D? Which gui is the most popular with D? Which one has a future? And which is the easiest to learn?IMO, GTK itself (ie, not just gtkD) is terrbile from an end-user standpoint (ie, garbage non-native controls), so I try to recommend against it. I haven't really done any GUI stuff in D, so I can't really recommend anything in particular, but the ones I would look at are wxD (wxWidgets), DWT (SWT) and maybe qtD (Qt).
Oct 24 2011
On 10/24/11, Nick Sabalausky <a a.a> wrote:(ie, garbage non-native controls)In reality you don't even need to use native controls to create a true native look. In fact using true native controls is expensive, and even IE/Office use custom-drawn widgets that only appear native. There are theming API's in XP+ systems which for example Qt uses to make all widgets appear native (even if you use a custom theme). I think they still had to "simulate" the feel of some of the controls (scroll bars, ok/cancel button positions), but that's not too difficult to do. What Qt doesn't simulate are the common controls (e.g. file open dialogs), they just invoke an API function for that. AFAIK Gtk does none of those things. You can still use common controls for file dialogs, but I've yet to see any Gtk programmer do this.
Oct 24 2011
"Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message news:mailman.367.1319465270.24802.digitalmars-d-learn puremagic.com...On 10/24/11, Nick Sabalausky <a a.a> wrote:It's difficult to get all the subtle details right. For example, if you've been using non-native-UI apps in XP (as I'm always cursed to do), then task switching gets all fucked up. You'll click on a task button in the taskbar or alt-tab, and some random *other* program will pop to the front before the one you selected. Doesn't happen if you've only been using native-control apps. Irritating as hell.(ie, garbage non-native controls)In reality you don't even need to use native controls to create a true native look. In fact using true native controls is expensive, and even IE/Office use custom-drawn widgets that only appear native. There are theming API's in XP+ systems which for example Qt uses to make all widgets appear native (even if you use a custom theme). I think they still had to "simulate" the feel of some of the controls (scroll bars, ok/cancel button positions), but that's not too difficult to do.What Qt doesn't simulate are the common controls (e.g. file open dialogs), they just invoke an API function for that. AFAIK Gtk does none of those things.Exactly. The damn thing doesn't even *try* to fit in properly.You can still use common controls for file dialogs, but I've yet to see any Gtk programmer do this.Luckily Inkscape does. I really wish GIMP would (but it's clear that GIMP will never get a halfway decent interaface outside of a fork. Not too surprising since, AIUI, GIMP is to blame for GTK's existance in the first place).
Oct 24 2011