Lazarus

Programming => Widgetset => GTK => Topic started by: AlexTP on January 15, 2019, 08:07:49 am

Title: [Solved] ListView columns render '_' wrong
Post by: AlexTP on January 15, 2019, 08:07:49 am
Seems some GTK2 caveat. name "work_local" in column title of listview. Shows as "worklocal" with underlined "l" char.
Pls fix.
Title: Re: ListView header shows name "work_local" with underlined "l" instead of "_"
Post by: lucamar on January 15, 2019, 12:29:43 pm
It's a widgetset gotcha, I think. IIRC the underline character is used in the GTK API for the same purpose the ampersand is in the Windows API.
Title: Re: ListView header shows name "work_local" with underlined "l" instead of "_"
Post by: AlexTP on January 15, 2019, 07:41:23 pm
https://developer.gnome.org/gtk3/3.5/GtkButton.html

If characters in label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic.

//Maybe will try making a patch
Title: Re: ListView header shows name "work_local" with underlined "l" instead of "_"
Post by: AlexTP on January 16, 2019, 03:28:28 pm
Fix here https://bugs.freepascal.org/view.php?id=34882
Someone pls adapt it for Gtk3 (I cannot compile it)
TinyPortal © 2005-2018