Is it possible to change color text of a Button?
marco
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
Is it possible to change color text of a Button?
marco
Uwe,
Im' talking about tButton
REDEFINE BUTTON oButFil PROMPT "Test" ID 205 OF oDlg
I want that Test string is blue, for instance
Marco,
as far as I know, there is no Textcolor-support for Class TButton.
I tested something from TControl, but it is ignored.
Maybe a Solution using Skins ?
Best Regards
Uwe ![]()
Uwe,
I have a twbrowse list.
When I filter database I change the color from black to blue.
It seems intuitive to write "Filter" in blue in the button that filter twbrowse
Many thanks
marco

oSkinB := TSkinButton():New()
oSkinB:nClrBorder0_N := 0
oSkinB:nClrBorder1_N := 1
oSkinB:aClrNormal := { { 0.50, 16771797, 16777215 }, ;
{ 0.50, 16777215, 16771797 } }
oSkinB:aClrFocused := { { 0.50, 14130233, 16777215 }, ;
{ 0.50, 16777215, 14130233 } }
oSkinB:aClrPressed := { { 0.50, 12171775, 16777215 }, ;
{ 0.50, 16777215, 12171775 } }
SkinButtons( oSkinB )Marco,
Windows Api does not allow to change the textcolor of a windows-button.
But you can use tsbutton instead. Here you can change the texcolor and the buttoncolor. The look of these buttons does not differ from the windows buttons