Thread overview
AWT-like gui?
Aug 21, 2004
jz
Aug 21, 2004
J C Calvarese
Aug 23, 2004
Ilya Minkov
Aug 24, 2004
J C Calvarese
Aug 24, 2004
ahiru
Re: wxD (was AWT-like gui?)
Aug 25, 2004
J C Calvarese
Aug 25, 2004
John Reimer
August 21, 2004
Is there currently a preferred AWT-like, cross-platform GUI library for D? I was impressed with the documentation for DIG, but I can't get it to compile with 0.99*, and I can't seem to find an up-to-date version for unDig, either. Also I was wondering whether something like this would eventually become part of the D standard library, as it has in Java?


* When trying to compile, after fixing some C-style casts and replacing the identifier name 'package', I get the usual error:

C:\dig-0.0.14\dig>make install
c:\dmd\bin\dmd net\BurtonRadons\digc\digc.d net\BurtonRadons\digc\omflistexports
d net\BurtonRadons\digc\strip.d net\BurtonRadons\digc\libraryRegistrar.d net\Bu
rtonRadons\digc\sys.d net\BurtonRadons\digc\sysBase.d net\BurtonRadons\digc\prog
ram.d kernel32.lib -unittest net\BurtonRadons\dig\common\baseDirectory.d
Error: Error reading file 'ctype.d'


--- errorlevel 1


August 21, 2004
In article <cg6n9o$1b08$1@digitaldaemon.com>, jz says...
>
>Is there currently a preferred AWT-like, cross-platform GUI library for D? I was impressed with the documentation for DIG, but I can't get it to compile with 0.99*, and I can't seem to find an up-to-date version for unDig, either. Also I

Have you tried http://www.dsource.org/projects/undig/ ?

It's not perfect, but it's in better shape than the ancient file at opend.org.

>was wondering whether something like this would eventually become part of the D standard library, as it has in Java?

A GUI library might eventually ship with D, but I doubt it'll be dig or unDig. (No offense to the unDig team which I'm sort of a member of.)

>
>
>* When trying to compile, after fixing some C-style casts and replacing the identifier name 'package', I get the usual error:
>
>C:\dig-0.0.14\dig>make install
>c:\dmd\bin\dmd net\BurtonRadons\digc\digc.d net\BurtonRadons\digc\omflistexports
>d net\BurtonRadons\digc\strip.d net\BurtonRadons\digc\libraryRegistrar.d net\Bu
>rtonRadons\digc\sys.d net\BurtonRadons\digc\sysBase.d net\BurtonRadons\digc\prog
>ram.d kernel32.lib -unittest net\BurtonRadons\dig\common\baseDirectory.d
>Error: Error reading file 'ctype.d'

That sounds like an error from the opend.org version of dig. If you're still interested, try the dsource.org project.

>
>
>--- errorlevel 1

jcc7
August 23, 2004
J C Calvarese schrieb:

> Have you tried http://www.dsource.org/projects/undig/ ?
> 
> It's not perfect, but it's in better shape than the ancient file at opend.org.

I have tried undig. After fixing it to compile well, i get executables where most controls don't display at all. That is, they seem not to get created somehow. Only drop-down lists and scintilla are visible, the rest not. OpenGL demos fail because the handle they get is not a valid window handle, so the GL context cannot be created. Perhaps i fixed one bug too many. :) I have no idea of Windows programming, so i don't have a clue what could be causing that kind of behaviour.

I didn't get the DIG compiler to compile, instead i made my own compilation script for the GUI part and the demos only.

> A GUI library might eventually ship with D, but I doubt it'll be dig or unDig.
> (No offense to the unDig team which I'm sort of a member of.)

The one that hits it first would be doomed to become very popular if not standard. :) And even if it doesn't ship with the compiler, evereone would know what to get first. :> Besides, distros are possible: IDE~ compiler~ libs.

Regarding that, i have taken a look at wx.Net - the C# code for it makes a neat impression and i bet it can be mostly converted by automated means into D, that's what i'm goint to give a try at. wx.Net works by building a DLL from C++ which exports most of the library as C or Windows standard functions, and by loading this DLL from C# and redirecting the calls.

Now i have one more excuse for devoting very little time to D - reading the D newsgroup takes up too much time. :>

-eye
August 24, 2004
Ilya Minkov wrote:
> J C Calvarese schrieb:
> 
>> Have you tried http://www.dsource.org/projects/undig/ ?
>>
>> It's not perfect, but it's in better shape than the ancient file at opend.org.
> 
> 
> I have tried undig. After fixing it to compile well, i get executables where most controls don't display at all. That is, they seem not to get created somehow. Only drop-down lists and scintilla are visible, the rest not. OpenGL demos fail because the handle they get is not a valid window handle, so the GL context cannot be created. Perhaps i fixed one bug too many. :) I have no idea of Windows programming, so i don't have a clue what could be causing that kind of behaviour.

I already admitted that undig isn't perfect. ;)

> 
> I didn't get the DIG compiler to compile, instead i made my own compilation script for the GUI part and the demos only.
> 
>> A GUI library might eventually ship with D, but I doubt it'll be dig or unDig.
>> (No offense to the unDig team which I'm sort of a member of.)
> 
> 
> The one that hits it first would be doomed to become very popular if not standard. :) And even if it doesn't ship with the compiler, evereone would know what to get first. :> Besides, distros are possible: IDE~ compiler~ libs.
> 
> Regarding that, i have taken a look at wx.Net - the C# code for it makes a neat impression and i bet it can be mostly converted by automated means into D, that's what i'm goint to give a try at. wx.Net works by building a DLL from C++ which exports most of the library as C or Windows standard functions, and by loading this DLL from C# and redirecting the calls.

I've thought about trying to use SWIG on wxWidgets, but I keep on getting sidetracked into other little projects. In theory, I think it'd work, but no one has tried. :(

http://www.dsource.org/projects/swig4d/
http://wxwidgets.org/

> 
> Now i have one more excuse for devoting very little time to D - reading the D newsgroup takes up too much time. :>
> 
> -eye


-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
August 24, 2004
In article <cge0e1$3hh$1@digitaldaemon.com>, J C Calvarese says...
>
>I've thought about trying to use SWIG on wxWidgets, but I keep on getting sidetracked into other little projects. In theory, I think it'd work, but no one has tried. :(
>
>http://www.dsource.org/projects/swig4d/ http://wxwidgets.org/
>

http://user.script.nu/~ahiru/wxd01.jpg http://d.hatena.ne.jp/k_ahiru/searchdiary?word=*%5BwxD%5D (sry, it is Japanese...)

coming soon :P


August 25, 2004
ahiru wrote:
> In article <cge0e1$3hh$1@digitaldaemon.com>, J C Calvarese says...
> 
>>I've thought about trying to use SWIG on wxWidgets, but I keep on getting sidetracked into other little projects. In theory, I think it'd work, but no one has tried. :(
>>
>>http://www.dsource.org/projects/swig4d/
>>http://wxwidgets.org/
>>
> 
> 
> http://user.script.nu/~ahiru/wxd01.jpg

Cool! I stand corrected. ;)

"wxD" - that sounds great!

> http://d.hatena.ne.jp/k_ahiru/searchdiary?word=*%5BwxD%5D
> (sry, it is Japanese...)

I don't know Japanese, but it appears you're making good progress. (I tried using http://babelfish.altavista.com/tr, but machine translations don't work quite right. Oh, well.)

> coming soon :P

I can hardly wait!


-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
August 25, 2004
ahiru wrote:

> In article <cge0e1$3hh$1@digitaldaemon.com>, J C Calvarese says...
> 
>>I've thought about trying to use SWIG on wxWidgets, but I keep on getting sidetracked into other little projects. In theory, I think it'd work, but no one has tried. :(
>>
>>http://www.dsource.org/projects/swig4d/
>>http://wxwidgets.org/
>>
> 
> 
> http://user.script.nu/~ahiru/wxd01.jpg
> http://d.hatena.ne.jp/k_ahiru/searchdiary?word=*%5BwxD%5D
> (sry, it is Japanese...)
> 
> coming soon :P
> 
> 

Woah!  This could be a big deal! Looks like there's more progress with that than with DWT!

Bravo!