Forum > LCL

Strange behavior TFontDialog component

<< < (2/2)

zoltanleo:
Hmmm....

I found that for nix OS, some TWinControl  descendans cannot have the font style fsStrikeOut and fsUnderline. But descendants of TGraphicControl (e.g. TLabel) display these styles correctly. What is it: a bug or a feature?

trev:
What does the Lazarus restriction browser show?

skalogryz:

--- Quote from: zoltanleo on May 17, 2022, 11:58:18 pm ---When I use the FontDialog under Darwin, I can select the font color as well as some font styles in the dialog, but they are not applied after Execute method is executed (fig 3).
--- End quote ---
fixed here: https://github.com/skalogryz/Lazarus/commit/8d136662f3a6ef9dd2813b612f71d8378d635dfa

zeljko:

--- Quote from: zoltanleo on May 20, 2022, 06:50:25 am ---Hmmm....

I found that for nix OS, some TWinControl  descendans cannot have the font style fsStrikeOut and fsUnderline. But descendants of TGraphicControl (e.g. TLabel) display these styles correctly. What is it: a bug or a feature?

--- End quote ---

It works with qt and qt5 widgetset.

zoltanleo:

--- Quote from: skalogryz on May 24, 2022, 06:47:18 am ---
--- Quote from: zoltanleo on May 17, 2022, 11:58:18 pm ---When I use the FontDialog under Darwin, I can select the font color as well as some font styles in the dialog, but they are not applied after Execute method is executed (fig 3).
--- End quote ---
fixed here: https://github.com/skalogryz/Lazarus/commit/8d136662f3a6ef9dd2813b612f71d8378d635dfa

--- End quote ---

Can you create a ticket in the bug tracker or provide a link if the topic exists?

Upd: the ticket is already exists

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39765

Navigation

[0] Message Index

[*] Previous page

Go to full version