(SOLVED) GTK tabulation of text in the menu

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

(SOLVED) GTK tabulation of text in the menu

Postby VANYA » Oct 10, 2017 18:46

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: 140
Joined: May 29, 2014 22:01
Location: ID

Re: GTK tabulation of text in the menu

Postby nimdays » Oct 13, 2017 2:40

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

Re: GTK tabulation of text in the menu

Postby VANYA » Oct 13, 2017 7:13

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. :(

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests