Board index » cppbuilder » Unexpected color change
JVines
![]() CBuilder Developer |
Unexpected color change2006-06-13 04:30:26 AM cppbuilder51 What is the default Brush color for a TPaintBox's canvas? When a script runs from the OnCreate event, PaintBox->Canvas->Brush->Color returns clWhite, but when the same script runs from a button's OnClick event, the property returns clBtnFace. I have tripple-checked, and confirmed, my code is not causing this. This only happens between the following statements in the WinMain() function: Application->CreateForm(__classid(TForm1), &Form1); Application->Run(); |