Hm, is there no way out?What you see here is FireMonkey, a component library in addition to Delphi's VCL with its own controls. Lazarus does not have an equivalent. Well, not exactly: there is the Customdrawn widgetset, which you can select in the project options > Additions and overrides > Select widgetset (maybe you must also install the package "customdrawn", https://wiki.freepascal.org/Lazarus_Custom_Drawn_Controls) - but this is unmaintained half-finished work and I never was able to create something useful with it. As I said, you must look for a third-party library which draws the controls without the widgetset (BGRA, for example) and you must use these controls in your application and hope that all the controls that you need are supported. When it is only a few components that you want to "re-color" you might also look at the ExCtrls library on CCR which tries to mimic the original LCL controls, but in a way that some restrictions due to the widgetset are by-passed (https://wiki.lazarus.freepascal.org/ExCtrls). To be honest - this is also unfinished work, but at least maintained (by myself).
Not sure, if this works in recent Delphi version like this anymore.
I attach you a screenshot. This was what I used since long: I did not care for any color with it.
Suddenly the topic is back again.
Is there nothing comparable in Lazarus?
It is really nice and gives the programmer time for more important issues.
@KodeZwerg:I love that kind of error report... "does not work".... good.
Components.Font
does not work for me
I cannot combine component with font, see attach.My bad, here is a quick fix
If I enforce it, there is an error-message.
MUST it be on create?
I made a method from it and get:
[Window Title] Fehler [Content] Projekt project_T hat Exception-Klasse »External: ACCESS VIOLATION« ausgelöst mit der Meldung: Access violation reading from address $FFFFFFFFFFFFFFFF. In Datei 'control.inc' in Zeile 3460: if FFont.IsEqual(Value) then exit; [Ok]
it is this line
TControl(Self.Components[i]).Font := LFont;
Hi, to customize font's color on TCheckBox and TRadioButton, I do the following:When I would do that, I would SubClass and OwnerDraw.
As I wrote above, this is not possible with the standard LCL TRadioButtons. The same as in Delphi's VCL, BTW. Basically this should be documented on page Restrictions of the object inspector (or in the Restriction Browser in menu View), but I would not swear that these entries are up-to-date.No.
Well, you turn off theme-services, and if you do this it works out of the box: Just set TRadioButton.Color and TRadioButton.Font.Color in the Object Inspector. Since the OI runs WITH theme services you do not get a visual feedback, but when the program runs the background and text colors have taken the corresponding values. Of course, only without theme-services. This results in the Win95 look. If you like that - fine; if you don't the same problem again.As I wrote above, this is not possible with the standard LCL TRadioButtons. The same as in Delphi's VCL, BTW. Basically this should be documented on page Restrictions of the object inspector (or in the Restriction Browser in menu View), but I would not swear that these entries are up-to-date.No.
I proof it with images.