How can I change the Button color?
Applies To: C++Builder 1 or higher
Category: Knowledge Base
- You cannot. The Button component is based on the Standard Windows Button Control. In previous versions of Windows, an application could change the background of a button by handling the WM_CTLCOLORBTN message. However, in Windows 95/NT 4.0 or later, changes made during this message have no effect on Buttons.
-
- The only solution is to create/use an owner-drawn component.
C++Builder Developer's Network
Copyright © Yoto Yotov