Empty Menu Item random space
Moderators: white, Hacker, petermad, Stefan2
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
Empty Menu Item random space
I use the "empty" item like "" string to split the menu, but every time after tc startup, the space of the item has random length. sometime wide sometime thin
- ghisler(Author)
- Site Admin
- Posts: 48118
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Are you talking about the menu bar (e.g. between "Files" and "Mark", or the drop-down menu, e.g. between "Change attributes" and "Pack"?
Neither is currently supported, so I will have to add code to support it.
Neither is currently supported, so I will have to add code to support it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
Yes, it is the menubarghisler(Author) wrote:Are you talking about the menu bar (e.g. between "Files" and "Mark", or the drop-down menu, e.g. between "Change attributes" and "Pack"?
Neither is currently supported, so I will have to add code to support it.
I use code like this
Code: Select all
END_POPUP
POPUP ""
END_POPUP
POPUP "电源(&P)"
http://imgbox.com/Ah3Jz3X3
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
2thomasmolover
Hmm, here the space stays the same size if I add:
between to menu items.
Maybe it is a problem with chinese - does it happen for you if you try it with for example the German menu file?
I have only tested under Windows 7 and 10 so far.
Hmm, here the space stays the same size if I add:
Code: Select all
POPUP ""
END_POPUP
Maybe it is a problem with chinese - does it happen for you if you try it with for example the German menu file?
I have only tested under Windows 7 and 10 so far.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
Maybe the reason is right, but I have to use it in Chinesepetermad wrote:2thomasmolover
Hmm, here the space stays the same size if I add:between to menu items.Code: Select all
POPUP "" END_POPUP
Maybe it is a problem with chinese - does it happen for you if you try it with for example the German menu file?
I have only tested under Windows 7 and 10 so far.
Off course, but in order to rule out whether or not it is because of Chinese in the .mnu file, you could try with another language's .mnu file - if you still have the problem, we can rule out Chinese as the reason.Maybe the reason is right, but I have to use it in Chinese
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
yes, it only happened in chinese mnu, even between two "English" Menu item with other Chs, other language like france dezth etc, it NOT appear,petermad wrote:Off course, but in order to rule out whether or not it is because of Chinese in the .mnu file, you could try with another language's .mnu file - if you still have the problem, we can rule out Chinese as the reason.Maybe the reason is right, but I have to use it in Chinese
perhaps any problem in asia-lan?
Is your .mnu file in ANSI or Unicode/UTF8 ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
2thomasmolover
Try \t instead of space, (\t is replaced with Tab character)
You can also repeat \t as much as you want, e.g.
Try \t instead of space, (\t is replaced with Tab character)
Code: Select all
POPUP "\t"
END_POPUP
Code: Select all
POPUP "\t\t\t\t"
END_POPUP
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
2thomasmolover
If using \t didn't gave you the result you want then try inserting MENUITEM SEPARATOR between menus, it will add non-clickable space between menus like HELP_BREAK
2ghisler(Author)
Bug report:
TC x64 inserts dashes instead of blank spaces see this picture
Here is the menu i used to create the screenshot
If using \t didn't gave you the result you want then try inserting MENUITEM SEPARATOR between menus, it will add non-clickable space between menus like HELP_BREAK
2ghisler(Author)
Bug report:
TC x64 inserts dashes instead of blank spaces see this picture
Here is the menu i used to create the screenshot
Code: Select all
POPUP "&Files"
END_POPUP
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
POPUP "&Mark"
END_POPUP
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
POPUP "&Commands"
END_POPUP
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
POPUP "&Net"
END_POPUP
POPUP "Sho&w"
END_POPUP
POPUP "C&onfiguration"
END_POPUP
STARTMENU
HELP_BREAK
POPUP "&Help"
END_POPUP
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
- ghisler(Author)
- Site Admin
- Posts: 48118
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have added these lines
POPUP ""
END_POPUP
between all top level menus, and the width is always exactly the same.
Maybe you can just add spaces to the menu items, e.g.
POPUP "Files "
instead of
POPUP "Files"
? This works for me too.
POPUP ""
END_POPUP
between all top level menus, and the width is always exactly the same.
Maybe you can just add spaces to the menu items, e.g.
POPUP "Files "
instead of
POPUP "Files"
? This works for me too.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- thomasmolover
- Member
- Posts: 167
- Joined: 2016-12-12, 01:32 UTC
I test this way in any westen language, English, France or Danish etc. the width can be the same.ghisler(Author) wrote:I have added these lines
POPUP ""
END_POPUP
between all top level menus, and the width is always exactly the same.
Maybe you can just add spaces to the menu items, e.g.
POPUP "Files "
instead of
POPUP "Files"
? This works for me too.
but when I use Chinese Language, Whatever the "" or the "\t", the width would got the random value.