Forum > LCL
the TSpeedButton.Font.Color It doesn't work.
dtamadeEx:
Report a bug
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---TSpeedButton.Font.Color It doesn't work.
Handoko:
Just tested it on Lazarus 1.8.4 Linux Gtk2, it works. Tested both on design-time, runtime and by using Object Inspector and code.
Bart:
IIRC then on Windows at least the font color of a TSpeedButton is themed (so determined by the OS).
You can turn off themes in Project Options to test it.
(But your program will look ancient then.)
Bart
wp:
Many of the components on the usual Lazarus component palettes are painted by the widgetset. Usually this means that colors and fonts cannot be changed by the program, but are defined by the currently active theme services.
So, if you really must change the font color of the speedbutton you must use one of the third-party components out there.
If it does not matter when the button gets the focus you an use TBitBtn instead, here you can change the Font.Color (at least on Windows, but maybe not on other widgetsets)
dtamadeEx:
OK, I see. Thank you.
Navigation
[0] Message Index
[#] Next page