Simply setting the form's COLOR property doesn't yet cause it to change right away. I will fix that.
Shane
>> "Jeffrey A. Wormsley" 08/01 8:15 PM >>>
Michael A. Hess wrote 7 lines
TColorDialog is finished and working. You can see it working in the
comDialogs example. If you select a color it changes the background
color of the demo window. The only problem is that the refresh routines
for the window aren't fired when you change the color. So to see the new
color after you select it in the ColorDialog and close the ColorDialog
just slightly resize the demo window. You will then see the new
background color.
The TColorDialog looks great, but is there any way to use it to pick a "standard" color (clRed, clTeal, etc.)? Sort of like the grid in Delphi? Also, it has some problems in Win32. First, clicking OK or Cancel doesn't do anything.. You have to close the dialog with the x. Second, after close, as you noted, you must resize. But, after resize, it changes to the wrong color, and if you change the color with the dialog again, the area of the original form size goes back to the color it was created with (some dark green for me).
Jeff.
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus