Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

More stuff added to CVS

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jeffrey A. Wormsley
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.

Reply by email

Michael A. Hess
to Jeffrey A. Wormsley
Jeffrey A. Wormsley wrote
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?

Interesting thought. What I will have to do is build another dialog that contains just those boxes to choose and if you want the full blown color picker then you select it from there. I'll work on that one when I get back. I be out of the office until Thursday. Good idea by the way.

Show quoted text 6 lines
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).

Very, very strange. I'll have to look at this as well. :-\

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Shane Miller

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

Reply by email