Changing button color in Paradox for Windows 
Author Message
 Changing button color in Paradox for Windows
It seems to me that the color of the buttons and the part of the frame
with the title is controlled by the desktop colors in Windows. Without
knowing the colors chosen on the target computer, I cannot design a
color scheme for a form.  Any ideas?




Fri, 24 Jul 1998 03:00:00 GMT
 Changing button color in Paradox for Windows

Quote:

>It seems to me that the color of the buttons and the part of the frame
>with the title is controlled by the desktop colors in Windows. Without
>knowing the colors chosen on the target computer, I cannot design a
>color scheme for a form.  Any ideas?



You can use the readProfileString method to read the colour selection from
Win.ini, and set your colour scheme accordingly.  This means a longer opening
time for your forms, though, because all your UIObjects will be resetting their
colours based on the colour scheme.

example:
method open(...)
var
   s string
endvar
   s = readProfileString(WindowsDir()+"win.ini","colors","WindowText")
   s.view("Window Text Colour")

(you may need a backslash: WindowsDir()+"\\win.ini" - check to be sure)
Open your win.ini file using Notepad (or SysEdit) and examine the entries in
the [colors] section to see what's available (WindowText, etc.).

Jim



Sat, 25 Jul 1998 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Mac Push Buttons - Changing Colors When Buttons Pushed

2. command button color changing

3. Change color of text on command button

4. Changing Caption color of Command Button

5. Button color in Pardox for Windows

6. pdox(dos) - changing color in OK button

7. how to make a text field change color if a radio button is pushed

8. Changing Button Colors

9. Changing Button Colors

10. Changing Color in a button

11. HELP: Changing colors of Push Button controls


 
Powered by phpBB® Forum Software