(SOLVED) GTK tabulation of text in the menu

Linux specific questions.
Post Reply
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

(SOLVED) GTK tabulation of text in the menu

Post by VANYA »

Hi ALL!

Guys, I noticed that tabbing in the menu on the right does not work in Linux.

In example GTK when using:

Code: Select all

dim as string sBuf = "Open" & !"\t" & "ctrl+O"
gtk_menu_item_new_with_label(strptr(sBuf))
.....
dim as string sBuf2 = "Close all" & !"\t" & "alt+f4"
gtk_menu_item_new_with_label(strptr(sBuf2))
.....
 
In Windows works correctly:

Code: Select all

Open                     ctrl+O
Close all                alt+f4
However, in Linux it turns out very ugly:

Code: Select all

Open    ctrl+O
Close all    alt+f4
Is this a Linux problem (window manager) or something I do not know?

P.S. I tried on the example of the delivery of the compiler (Compilier\examples\GUI\GTK+\Tutorials\menu.bas), just by adding tabs(\t).
Last edited by VANYA on Oct 13, 2017 7:14, edited 1 time in total.
nimdays
Posts: 236
Joined: May 29, 2014 22:01
Location: West Java, Indonesia

Re: GTK tabulation of text in the menu

Post by nimdays »

@VANYA, Do you have the minimum code for this ?
I don't have the source ATM.
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: GTK tabulation of text in the menu

Post by VANYA »

Sorry!

It turns out and on windows the same problems if to write longer record:

"Open all files\tctrl+O"
close\talt+f4"

This is similar to the feature of GTK, it just does not know how to align the text to the right, at least using the function: gtk_menu_item_new_with_label. :(
Post Reply