TWindow default foreground color

TWindow default foreground color

Postby James Bott » Sun Dec 30, 2007 1:21 pm

Antonio,

Is there a reason that a window defaults to a white foreground color?

This is from TWindow:New():

Default...
nClrFore := CLR_WHITE, nClrBack := GetSysColor( COLOR_WINDOW ),;

It seems this sould be:

nClrFore := GetSysColor( COLOR_WINDOWTEXT), nClrBack := GetSysColor( COLOR_WINDOW ),;

The way it is now, if you try to put a SAY on a window it is white text on a white background (and thus invisible). You have to either change the foreground of the window or each SAY on the window.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Sun Dec 30, 2007 1:42 pm

James,

You are right. Thanks,

We are used to the gray color for the background, thats why we didn't noticed it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests