FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with windows specific bug

 
Post new topic   Reply to topic     Forum Index -> Tioport
View previous topic :: View next topic  
Author Message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 26, 2007 5:03 pm    Post subject: Help with windows specific bug Reply with quote

I compared the GUI of the original Java examples, with the D variants.
On windows I discovered windows specific bugs:

1. Table.setHeaderVisible( true ) has not effect, Can be seen in addressbook and control example.

2. The background of labels is white, instead of grey. (addressbook File->New Contact)

Hm, I have no experience in debugging on windows, nor do i know much about windows GUI programming.

Can someone please find out, whats going wrong here?
Back to top
View user's profile Send private message
un_guru



Joined: 14 Sep 2005
Posts: 32

PostPosted: Fri Apr 27, 2007 12:00 am    Post subject: Reply with quote

hi

you have to compile with -L/SUBSYSTEM:windows:5 - the executable will run without the command prompt. i don't know why, just that is.
this behavior was also in dwt.
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Fri Apr 27, 2007 1:12 am    Post subject: Reply with quote

Wow, that was fast diagnosis Smile

Thanks for this valueable hint.

I recompiled the examples. the 'addressbook' and 'paint'. They shows now the correct behaviour. But 'control' does not start up anymore. Is there a way, to get the text, the application prints to stdout?
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Fri Apr 27, 2007 8:17 am    Post subject: Reply with quote

With DWT I link with a .def file which contains

Code:
EXETYPE NT
SUBSYSTEM WINDOWS,4.0
Back to top
View user's profile Send private message
un_guru



Joined: 14 Sep 2005
Posts: 32

PostPosted: Fri Apr 27, 2007 11:02 am    Post subject: Reply with quote

you can always use MessageBox.showMessage(), or write to a log file.
But anyway, when debugging you don't really care for the label' background color Smile ...
Back to top
View user's profile Send private message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Fri Apr 27, 2007 11:31 am    Post subject: Reply with quote

I could be wrong, but about the label background, wouldn't subsystem:console:5 give you both gray background and a console?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Sat Apr 28, 2007 7:43 pm    Post subject: Reply with quote

console:5 works fine
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Tioport All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group