TButton kapselt ein Kontrollelement der WinAPI Fensterklasse BUTTON. Um einen Button jetzt andersfarbig darzustellen, müste man auf die Nachricht WM_CTLCOLORBTN reagieren. Aber:
| Zitat: |
Buttons with the BS_PUSHBUTTON, BS_DEFPUSHBUTTON, or BS_PUSHLIKE styles do not use the returned brush. Buttons with these styles are always drawn with the default system colors. Drawing push buttons requires several different brushes-face, highlight and shadow-but the WM_CTLCOLORBTN message allows only one brush to be returned. To provide a custom appearance for push buttons, use an owner-drawn button.
|
Du müsstes den Button also subclassen und das Zeichen des Buttons selber machen. Oder du nimmst dir eben eine passende Komponente.