PaulSquires / WinFBE

FreeBASIC Editor and Visual Designer for Windows
https://www.planetsquires.com
GNU General Public License v3.0
152 stars 39 forks source link

bug: Toolbar Tooltip text has first character replaced #23

Open ghost opened 3 years ago

ghost commented 3 years ago

RECREATE: Enter Toolbar Editor dialog. Add Button. Set Tooltip text. Press OK. Press F5 to compile/run. App starts. Hover mouse over toolbar button. Tooltip displayed. First character is one that was not entered in designer. Subsequent characters are all those entered in designer EXCEPT the first. Example: 'New' becomes 'xew', 'Open' becomes 'xpen', etc, where 'x' is some some semi-consistent character (meaning that it was some foreign character the first time I saw it, but it is currently 'H'). ERROR: Tooltip text displayed consists of all text entered except first character, which is replaced by a character that was not entered. EXPECTED: Tooltip text displayed consists of all text entered. WORKAROUND: Enter one sacrificial character first, followed by desired text; tooltip displayed will be readable but have one unexpected character in front. VERSION: 2.1.8 en-us Win7 on VBox 6 on Linux Mint 20.1 SAMPLE: https://github.com/ssepan2/FreeBASICForm OPINION: Possible character-array indexing issue (0 vs 1 index for first position). Or related to discussion in your forum (https://www.planetsquires.com/protect/forum/index.php?topic=4511.0). I see WinBDE's INI setting pointing to english.lang, but I wonder if being in "Program Files" ("PROGRA~1") is tripping it up.

PaulSquires commented 3 years ago

Unable to duplicate this issue at this time even after using your FreeBASICFrom test project. I will leave this issue open and see I can eventually reproduce it on my hardware. I have tested using Windows 10 creating both 32 and 64 exe's.

ghost commented 3 years ago

I think it was one of the other (closed) issues that mentioned a problem with tooltips, and the discussion got around to localization, and a specific language file not being found. So I wondered if this one could be caused by my putting the program in "Program Files" (issue/tip #20 ), which could be why you haven't seen it yourself.

("Microsoft, why couldn't you just have called it 'Programs'; we aready knew you put 'Files' in there...")

ghost commented 3 years ago

Moved app folder into 'c:\Programs', touched up .INI file to find compilers, able to compile/run OK, but the 1st character of the tooltip is still appearing out of nowhere. So, not a 'Program Files' issue (#20) that I can tell.