View previous topic :: View next topic |
Author |
Message |
keinfarbton
Joined: 03 Dec 2005 Posts: 224 Location: Stuttgart - Germany
|
Posted: Thu Apr 26, 2007 5:03 pm Post subject: Help with windows specific bug |
|
|
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 |
|
|
un_guru
Joined: 14 Sep 2005 Posts: 32
|
Posted: Fri Apr 27, 2007 12:00 am Post subject: |
|
|
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 |
|
|
keinfarbton
Joined: 03 Dec 2005 Posts: 224 Location: Stuttgart - Germany
|
Posted: Fri Apr 27, 2007 1:12 am Post subject: |
|
|
Wow, that was fast diagnosis
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 |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Fri Apr 27, 2007 8:17 am Post subject: |
|
|
With DWT I link with a .def file which contains
Code: | EXETYPE NT
SUBSYSTEM WINDOWS,4.0 |
|
|
Back to top |
|
|
un_guru
Joined: 14 Sep 2005 Posts: 32
|
Posted: Fri Apr 27, 2007 11:02 am Post subject: |
|
|
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 ... |
|
Back to top |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Fri Apr 27, 2007 11:31 am Post subject: |
|
|
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 |
|
|
keinfarbton
Joined: 03 Dec 2005 Posts: 224 Location: Stuttgart - Germany
|
Posted: Sat Apr 28, 2007 7:43 pm Post subject: |
|
|
console:5 works fine |
|
Back to top |
|
|
|