Page 1 of 1

Display of Favorites Folders/Files menu via different methods

Posted: 19 Nov 2017 17:37
by klownboy
Hi Don, I noticed a bug in the way Favorite Folders or Favorite Files is displayed. When displayed via a small script (e.g., $f=favs('d');
load "$f", ,s;
), the display is fine. If displayed using the Favorite > Favorite Folders menu or using CID #550 the display doesn't interpret the <tab> character or any unicode symbols as shown below.

A simple script loaded with $f=favs('d');load "$f", ,s; Note: The UC stands for the unicode character that doesn't display on the forum. You can ignore the execute side since it has no bearing on the issue. Thanks.

Code: Select all

"XY scripts<tab>AHK scripts  UC|D:\Graphics\Icons\xy.ico" if($rmb==1) {goto D:\Tools\AutoHotkey\AHKscripts\;} else {goto D:\Tools\XYplorer\Scripts\;} unset $rmb;
"Home [C:\]<tab>Downloads  UC|:home" if($rmb==1) {goto G:\Downloads\;} else {#1401;} unset $rmb;
"Wallpaper<tab>Photos  UC|D:\Graphics\Icons\wallpaper_08.ico" if($rmb==1) {goto H:\Pictures\;} else {goto G:\Wallpaper\1920x1080\;} unset $rmb;
As you can see below, the Fav Folders menu looks fine when run from a script.
Fav Folders_run from script.JPG
When run from CID #550, the menu displays unicode special characters but doesn't interpret the <tab> character.
Fav Folders_run from CID 550.JPG
When run from the Favorites Menu, neither the <tab> character or the unicode symbol in interpreted properly.
Fav Folders_run from Favorites Menu.JPG

Re: Display of Favorites Folders/Files menu via different methods

Posted: 19 Nov 2017 18:40
by admin
The <tab> character constant is only resolved in a scripting context (natural).
The main menu does not support Unicode characters (insurmountable VB shortcoming).

Re: Display of Favorites Folders/Files menu via different methods

Posted: 19 Nov 2017 18:59
by klownboy
That's fine Don, it's not a real problem for me since I use the Favorites Menus from scripts only.

By the way on the topic of the <tab> character, I don't know if you saw this wish awhile back here viewtopic.php?f=5&t=18071. I like the fact that the <tab> character right justifies the text after the <tab> in a menu, but it would be nice if there was a way, maybe a different tab designation (or a modified chr(09)) where, when used, the tab would act as a true tab as it is in any word processor. This way, we could essentially align or left justify a second column as discussed in that wish. Or, maybe there is a way, and I just don't know how to accomplish it. Thanks.

Re: Display of Favorites Folders/Files menu via different methods

Posted: 19 Nov 2017 19:05
by admin
I don't think that's possible. That handling of the TAB character in menus is done by Windows, not by me. Since stone age it's the way how in Windows menus the caption is separated from the keyboard shortcut. You are abusing this ;) but you will eventually run against a wall...

Re: Display of Favorites Folders/Files menu via different methods

Posted: 19 Nov 2017 19:29
by klownboy
Again no problem Don. Hopefully there's no harm in asking. :) I'll closeout or delete the wish referred to above.

Re: Display of Favorites Folders/Files menu via different methods

Posted: 19 Nov 2017 19:54
by admin
No problem at all. I just recently discovered Fred Neil* which means I'm in a constant exquisite mood. :beer:

* PS: Some insights on Fred Neil: http://www.richieunterberger.com/manysides.html

Re: Display of Favorites Folders/Files menu via different methods

Posted: 20 Nov 2017 17:25
by klownboy
Honestly, I have never heard the name at least not that I remember. Of course I have heard some of his songs sung by others. I listened to a few of "his" songs sung by him on Youtube...he had a great voice. Seems he was quite the recluse especially later in life. I like good folk songs, but I'm not into today's 'country' music.

Re: Display of Favorites Folders/Files menu via different methods

Posted: 20 Nov 2017 17:29
by admin
Check out this deep country blues w/ Gram Parsons: https://www.youtube.com/watch?v=p8RAtpnA9w4