Whitehat wrote:
> Is there a way to change the color of a MessageDlg or ShowMessage box?
> How?

They are colored according to the user's system-wide window-color 
preferences.

If you want a different color, you can try instantiating a dialog box 
with CreateMessageDialog and then changing its Color property before you 
display it. That won't have any effect on the colors of the buttons, 
though, since the buttons are drawn by the OS and always use the OS colors.

When setting the colors, make sure you specify both the text and 
background color. If you set only one, then the color you've chosen 
might make the text unreadable when combined with the color you didn't 
choose.

-- 
Rob
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to