Recent

Author Topic: [Solved] ListView columns render '_' wrong  (Read 3256 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
[Solved] ListView columns render '_' wrong
« 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.
« Last Edit: January 16, 2019, 03:29:12 pm by Alextp »

lucamar

  • Hero Member
  • *****
  • Posts: 4219
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.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
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

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Fix here https://bugs.freepascal.org/view.php?id=34882
Someone pls adapt it for Gtk3 (I cannot compile it)

 

TinyPortal © 2005-2018