Recent

Author Topic: tform does not show color, applied through object-inspector, in editor, and butm  (Read 433 times)

Drachenbauer

  • Newbie
  • Posts: 2
Hello
When i change the color-property of a tform in the objectinspector, it shows the applyed color only ar runtime.
And buttons show a color, changed that way, nover, even not at runtime.
What's going wrong?

dsiders

  • Hero Member
  • *****
  • Posts: 1491
Hello
When i change the color-property of a tform in the objectinspector, it shows the applyed color only ar runtime.
And buttons show a color, changed that way, nover, even not at runtime.
What's going wrong?

My guess is you're using Windows.

Works on Linux+QT6. See attached.

Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

Crore

  • Newbie
  • Posts: 2
Same here, form color not changed in form editor. Yes, I'm using win11. It was working on win10!

Quote
And buttons show a color, changed that way, nover, even not at runtime.
That's always the case, since the OS is painting the buttons (and other controls too).

Thaddy

  • Hero Member
  • *****
  • Posts: 18475
  • Here stood a man who saw the Elbe and jumped it.
Can't replicate the form color, that simply works on Win11/64 Laz4.99.
The standard button and many other standard windows controls can indeed not change color.
That is by MS Windows design....
There are however many third-party buttons that can change color.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

cdbc

  • Hero Member
  • *****
  • Posts: 2505
    • http://www.cdbc.dk
Hi
Thaddy is right, as well as the others, if need be you can swap out your TButtons with TSpeedButtons, they'll follow your form's color... It gets worse with TTreeView & TListView, as they also follow the OS' theming and they're harder to draw yourself...
TStringGrid, you can colorize yourself, apart from the headers - there only the text-font  %)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Crore

  • Newbie
  • Posts: 2
Quote
Can't replicate the form color, that simply works on Win11/64 Laz4.99.
Where can I find Laz 4.99? I'm using 4.4. Was not working since maybe 3.8.
It's about design time and the integrated form editor.

And the solution is:
Uninstall package dockedformeditor - and the color is back!

cdbc

  • Hero Member
  • *****
  • Posts: 2505
    • http://www.cdbc.dk
Hi
Quote
Where can I find Laz 4.99?
Hmmm, that's quite easy actually, you use FpcUpDeluxe to do all the grunt work for you  ...or you get down to the "nitty gritty" and install it all from source.
But, are you sure you want to? 4.99 is the version of Main/Trunk, i.e.: the development version - that (could) change(s) every minute, or so!!!
Sometimes it's even broken  :o
If you're not very skilled, I'd stay with laz 4.4
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

 

TinyPortal © 2005-2018