Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Color Scheme?
Message
From
23/05/1997 09:17:24
 
 
To
23/05/1997 09:10:52
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00033294
Message ID:
00033403
Views:
47
>>
>> I want my program to use the colors that I made at development
>> time. What setting do I use?
>
>I use something like this in FPD:
>
> Set Color of Scheme 1 To W/N, N/W, W/N, W/N, W+/N, N/W,
> N/W, N+/N,
>GR+/B, R+/B, +
> Set Color of Scheme 2 To BG/b, W+/B, N/W*, B/W, R/BG*,
>B/W*, R+/GR*, W/N*, B/W, bg/b, +
> Set Color of Scheme 3 To W/GR, N/W, BG/N, BG/N, BG/N, N/BG,
> W+/W,
>N+/N, BG/N, BG/N, +
> Set Color of Scheme 4 To W/N*, W+/N*, G+/N*, B/W, R/BG*, GR+/R,
> W+/N,
>N+/N, B/W, W/N,+
> Set Color of Scheme 5 To W+/gr, W+/BG, W+/gr, W+/RB, W/RB, N/W*,
>W+/N, N+/N, W+/BG, W/RB, +
>
>....etc.
>
>The values were created in window/color dialog, and pasted from what you
>get by Scheme() function. Now, in VFP you'd use RGBScheme().
>
>Now, the bad news. You don't have a color picker in Fox anymore, you use
>Windows color picker. You don't know which colors apply to what anymore,
>except by trial and blow.
>
>I knew that in any of 24 color scheme 10th color pair applied to a
>disabled object, that color schemes 2 and 3 made cursor invisible (they
>were for menus & popups) etc. Anyway, Windows philosophy says you don't
>color your book, you sell a coloring book, so user applies colors at
>will.
>
>As the result, all the applications look the same. Gray. Worse, M$ gray.
>If you really want your own colors (I do that, too - I hate gray), you
>probably should hard-code them somewhere in your next-to-base classes,
>and tell your form classes to use those colors as a color source.
>
>And... er... color schemes 13 to 15 are read-only, for no
>well-documented reason.

Hi Dragan... thanks for the code.. it helps... I have my colors set to
whatever the user is using on his computer. If the user changes his color
scheme, my program will reflect the change.... thanks again..rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform