Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverse RGB
Message
From
06/06/2003 15:56:51
 
 
To
06/06/2003 15:41:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00797412
Message ID:
00797461
Views:
10
Boy, I don't have much of a clue. Did you look at rgbScheme()?
set color of scheme  1 to W+/BG,N/W,B+/BG,BG/B,B+/BG,GR+/B,GR+/B,N+/N,GR+/BG,N+/BG,+
for i = 1 to 11
	? rgbscheme(1, i)
next i
Shows foreground and background pairs. Can you split those strings out to apply to background and foreground colors of controls?

>Thanks Steve.
>
>My end goal here is to replace the below:
>
>set color of scheme  1 to W+/BG,N/W,B+/BG,BG/B,B+/BG,GR+/B,GR+/B,N+/N,GR+/BG,N+/BG,+
>
>with colors that will match the windows standard default colors. I know I can change the screen background and forecolor using:
>
>_screen.backcolor=12632256
>_screen.forecolor=0
>
>but what about buttons, windows, prompts, etc on older screens (.sprs), etc? How do I set those values without using SET COLOR TO w+/N, etc... Or can you use RGB() with SET COLOR or SET COLOR OF SCHEME?
>
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform