www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2035] New: D makes GUI dirty

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035

           Summary: D makes GUI dirty
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: terranium yandex.ru


When I tried to build a "Hello world" Windows GUI application, main window's
menu painted dirty: thin 1-pixel width line appeared under menu bar, and this
line was not updating. Nothing helped. I tried various window styles, classes,
I loaded menu from resources, created it manually, created dialog boxes with
menu. Nothing changed, non-updating line appeared everywhere. But test dialog
box in resource editor rendered just perfectly. I started to suspect dmd. I
created two source codes that do the same things - one in D and one in C. I
compiled C source with gcc and window rendered perfectly, D application'w
window rendered dirty. I'm not shure what causes the problem.


-- 
Apr 25 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035





------- Comment #1 from terranium yandex.ru  2008-04-25 12:36 -------
Created an attachment (id=250)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=250&action=view)
sources and compiled executables

compilation commands are
gcc -Wall -pipe -mwindows win2.c -o win2gcc.exe
dmd win2.d win2.def win2da.exe


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035





------- Comment #2 from terranium yandex.ru  2008-04-25 12:39 -------
Created an attachment (id=251)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=251&action=view)
screenshot of win2da.exe

Dirty line under menu is easily visible and it doesn't update when another
window moves above this window.


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035





------- Comment #3 from benoit tionex.de  2008-04-25 13:58 -------
There is this line and some of the controls have white background?

use this linker options
-L/SUBSYSTEM:windows:5


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035





------- Comment #4 from terranium yandex.ru  2008-04-25 15:05 -------
Thanks, that works! Is there some way to configure it in configuration files or
in .def file?


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035





------- Comment #5 from terranium yandex.ru  2008-04-25 15:12 -------
http://www.digitalmars.com/ctg/ctgDefFiles.html#subsystem
The SUBSYSTEM directive should be
SUBSYSTEM WINDOWS 4.0


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035


terranium yandex.ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
          Component|Phobos                      |DMD




------- Comment #6 from terranium yandex.ru  2008-04-28 02:07 -------
I think problem is actually in winsamp sample, I took .def file there.


-- 
Apr 28 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2035


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #7 from bugzilla digitalmars.com  2008-05-14 19:16 -------
See: http://www.digitalmars.com/faq.html#subsystem


-- 
May 14 2008