Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Joel S.
  Where is Joel S.?
 BC
 Canada
 Joel S.
 Tags
Subject: RE: FP2.6 to VFP 6.0 - Color Loss
Thread ID: 310994 Message ID: 311072 # Views: 54 # Ratings: 0
Version: FoxPro 2.x for Windows Category: Errors & Debugging
Date: Tuesday, June 28, 2011 4:21:17 PM         
   


> Hi everyone,
>
> Have a program that runs fine under FPW 2.6 and under Visual Foxpro 6.0 it also runs totally
> fine except for one thing: Color in a Browse Window.
>
> The application is designed to show a different color browse at a certain point and the
> code I use to do this is as follows:
>
> DEFINE WINDOW board AT 1, 1 SIZE 18.5, 57.5 TITLE " Title ";
> FONT "Lucida Console", 16;
> FLOAT NOCLOSE NOGROW SYSTEM COLOR RGB(0,0,0,238,203,173)
>
> Works with no issues under 2.6, but under Visual 6.0 there is a slight flash of the color
> just before the Browse comes up, but then it's still white afterwards.
>
> Any idea what might be causing this?


i know anything of fpw 2.6 but happily there is the backward compatibily in vfp.
i tried your code in vfp9 sp2 and i find the font you gave dont work.Changing the font you can make it work in browse window.the police lucida console is not true type (TT).
(there is a comment in dialog box font for any selected font).

NB: this dont work also for arial black....but ok with arial,Courier new....
also the pair of colors you gave
COLOR RGB(0,0,0,238,203,173)  
colors the initial window and be masked by the browse window (in my humble advice its to cut).

this is the testing code i used in vfp9
close data all
use  getfile('dbf')
local x,xfont,xsize
x=getfont()
if empty(x)
return .f.
endi

xfont=getwordnum(x,1,',')
xsize=val(getwordnum(x,2,','))

DEFINE WINDOW board AT 1, 1 SIZE 18.5, 57.5 TITLE "  Title ";
FONT m.xfont, m.xsize;
FLOAT CLOSE GROW SYSTEM    COLOR RGB(0,0,0,238,203,173)  

browse window board 
use



i dont know if this problem is related in vfp somewhere...
independently of your board window if you issue only in command window :
browse font "lucida console",16

that dont work also :-)
Regards
Yousfi Benameur

ENTIRE THREAD

FP2.6 to VFP 6.0 - Color Loss Posted by Joel Stainer @ 6/28/2011 12:34:21 AM
RE: FP2.6 to VFP 6.0 - Color Loss Posted by Yousfi Benameur @ 6/28/2011 4:21:17 PM
RE: FP2.6 to VFP 6.0 - Color Loss Posted by Joel Stainer @ 7/5/2011 2:26:35 AM