November 21, 2004
Ant wrote:
> this might be because you moved GTK.

I've copied it and my %PATH% points to these two locations... should be fine...


> on the user home directory there is a subdirectory "dantfw"
> with a "InstallConfig.txt" - check if every thing point to the
> right place.
> dantCompile should have 4 examples, can you see them on the comboBox?
> dantCompile compilation targets are in
> <APPDATE env var>\dantefw\Targets

Yeah, I can see these in the combo. When I select one I get 'Invalid parameter' on the console and when I hit compile, it crashes. Now I know why. The wrkDir is set to "\dantfw". When I change it to "C:\dantfw", it compiles OK. I've set the installation dir to "C:\dantfw" but it's still "\dantfw"


>> This may be related to the problem that I don't see any icons/stock objects, e.g. in the stock icon/button example I only have text labels.
> 
> 
> I don't see them either. I never had the will to try to figure out why.
> now that you're complaining I'll probably check it ;)
> I'm guessing it should be a simple problem, it's simply loading
> images from files.

Heheheh... good one. Well, raytracing with global illumination doesn't work in scroll bars, will you do it ? ;)


>> These problems may somehow be related to my system config: I have Windows installed on D: and dmd on C: maybe this has some meaning ? The setup insisted on installing GTK on D: though I've told it to install it on C:
> 
> 
> The locations are read from the environment variables.
> InstallConfig.txt stores the drive letter from the system variables
> but it doesn't for the locations it self generates.
> You could try going there and add the drive letter.

I've added the drive letter everywhere in "D:\Documents and Settings\h3r3tic\Application Data\dantfw\InstallConfig.txt" but I still have to add "C:\" manually in wrkDir... Guess it's hard-coded or in some config file I have yet to find


Ok, but now I *really* have to go to sleep ;)
Keep up the good work,

Tom
November 21, 2004
h3r3tic wrote:
> 
> I've compiled the DUI Hello World from within DIDE, the dantCompile tool crashes for me for some unknown to me reason.
> This may be related to the problem that I don't see any icons/stock objects, e.g. in the stock icon/button example I only have text labels.

oh!, sorry. This is a different thing.
there are no images on the stock buttons because the windows
look and feel is used, changing the look and feel with show the
images on the stock buttons.

let me confirm that...yes.

go to the share\themes folder on your Gtk and rename the
the Default folder to something else (DefaultWindows)
and rename the Gtk folger to Default.

How good the the XP look? I can only see the win2000 look.

Ant
November 21, 2004
Valéry Croizier wrote:

> - there is nothing in Start\Program (by the way, the name of this menu is
> different in XP French edition :o)

that's nothing:
the swidish version of excel has the FUNCTION names in swidish!

maybe there is a registry value with them Start\Programs,
there is no environment var (on my system) that contains the value.

Ant
November 21, 2004
On Sat, 20 Nov 2004 14:21:56 -0500, Ant wrote:

> Windows only(*) DUI version 00.20.99.

I forgot to add.

DUI license it's still LGPL but I will change it
to some license that allways you to do anything
with DUI except saying it's your original work.
probably the zlib license.

Ant

November 21, 2004
On Sun, 21 Nov 2004 04:18:55 +0100, h3r3tic wrote:

> Ant wrote:
>> 
>> I don't see them either. I never had the will to try to figure out why.
>> now that you're complaining I'll probably check it ;)
>> I'm guessing it should be a simple problem, it's simply loading
>> images from files.
> 
> Heheheh... good one. Well, raytracing with global illumination doesn't work in scroll bars, will you do it ? ;)

:)

I was not joking. All this past year I had no use for
DUI on windows except promote D and get more DUI users.
So you see: user satisfation it's important to me.

Ant

November 21, 2004
Ant wrote:
> h3r3tic wrote:
> 
>>
>> I've compiled the DUI Hello World from within DIDE, the dantCompile tool crashes for me for some unknown to me reason.
>> This may be related to the problem that I don't see any icons/stock objects, e.g. in the stock icon/button example I only have text labels.
> 
> 
> oh!, sorry. This is a different thing.
> there are no images on the stock buttons because the windows
> look and feel is used, changing the look and feel with show the
> images on the stock buttons.
> 
> let me confirm that...yes.
> 
> go to the share\themes folder on your Gtk and rename the
> the Default folder to something else (DefaultWindows)
> and rename the Gtk folger to Default.
> 
> How good the the XP look? I can only see the win2000 look.
> 
> Ant

Done that ! Themes work fine :) The XP look is quite good but that's not what I want from GTK :> if I can have cosmic-looking GUI with minimal effort, why should I use native-like look ;)

Actually DUI works like a charm now with one little exception - images not rendering (e.g. the 'Image' demo).

For those who don't like the default look or just want more, here's the link: http://art.gnome.org/themes/gtk2/
Download one of those and put the theme (extracted) to your GTK install dir \share\themes.

Some of these themes probably won't work as expected. But I've got the solution just right out of the box ;] Go here:
http://codeinsane.info/listDir.spy?viewType=detailed&path=download%2Fgtk%2Fengines
and download those dll's (or some of them, probably pixbuf and pixmap), put them to your GTK install dir \lib\gtk-2.0\2.4.0\engines
They are responsible for the rendering of these themes.

There's one more thing... One doesn't have to rename the theme folders to 'Default' to have a different look. There's a simpler option. Download this file: http://codeinsane.info/download/gtk/gtk2_prefs.exe and put it to your GTK install dir \bin. When ran, it lets you select the theme in a nice visual way so that you may check its look immediately :)

<sidenote>Once I've read that there's no pixmap (pixbuf?) for Win32... However on some forums I've read that there's an engine similar in functionality that can work as the original pixmap (buf?) so I've renamed it and it's fine. It has worked for me with PyGTK and works fine with DUI as well, so these .dll engines will hopefully work for anyone. They are not the most recent versions, I've probably downloaded them like ... half a year ago, but they still work fine</sidenote>

</h3>
November 21, 2004
Ant wrote:
> Unfortunatly the OpenGL extensions are still broken
> (OpenGL extensions and tests are included)

Since I have some exp with GTK and some more with OpenGL, I'd like to try to do sth with these extensions. Any clues for anyone willing to fix these problems ? What deserves attention ? what could be tried at first ? I've tried compiling these samples but they give an Access Violation.
November 21, 2004
On Sun, 21 Nov 2004 17:30:20 +0100, h3r3tic wrote:

> Ant wrote:
>> Unfortunatly the OpenGL extensions are still broken
>> (OpenGL extensions and tests are included)
> 
> Since I have some exp with GTK and some more with OpenGL, I'd like to try to do sth with these extensions. Any clues for anyone willing to fix these problems ? What deserves attention ? what could be tried at first ? I've tried compiling these samples but they give an Access Violation.

SimpleGL use to compile and run.
I change DUITestsGL so it compiled and run.
ShapeGL never ran.

now they all end with "Access Violation"
probably I did something stupid yesterday.
I'm uploading the linux version now after that I'll take a
look at it.

If you know how to debug on windows (I couldn't make it work yet) you could easelly see where is the access violation. that would help.

Ant

PS
thanks for the themes thing - I'll see if it's possible to
include the theme swapper on the next release.

November 21, 2004
> If you know how to debug on windows (I couldn't make it work yet)
> you could easelly see where is the access violation. that would help.

Well, I haven't debugged it but I've commented out some portions of code. That's something weird... When drawGL contains only this:

glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity ();

it runs without a problem and the frame is even black (correctly clearing ?)... but when I uncomment e.g.

glBegin(GL_TRIANGLES);
glColor3f(1.0f,0.0f,0.0f);
glVertex3f( 0.0f, 1.0f, 0.0f);
glColor3f(0.0f,1.0f,0.0f);
glVertex3f(-1.0f,-1.0f, 0.0f);
glColor3f(0.0f,0.0f,1.0f);
glVertex3f( 1.0f,-1.0f, 0.0f);
glEnd();

it gives me an access violation... just like doing e.g. glDisable(GL_TEXTURE_2D);

on the other hand, glPushMatrix and glPopMatrix don't give an AV... What might be the problem ? Some OpenGL initialization options may be broken... No clue about which ones though...
November 21, 2004
On Sun, 21 Nov 2004 18:11:48 +0100, h3r3tic wrote:

> 
> it gives me an access violation... just like doing e.g. glDisable(GL_TEXTURE_2D);
> 
> on the other hand,

I get discouraged because every thing works fine on linux...
(I'll take a look at it now)

Ant