LB Booster
« Menu »

Welcome Guest. Please Login or Register.
Oct 17th, 2017, 03:52am


Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
LB Umbrella forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Menu  (Read 87 times)
PabloSl
New Member
Image


member is offline

Avatar




PM


Posts: 2
xx Menu
« Thread started on: Jul 19th, 2017, 01:17am »

Hello,

When I run my program, while I press the Alt key, the menu bar do not shows proper pull-down menu letter marked with a &.

Like the 'F' in &File, or 'H' in &Help should show underline letter.

This happens with LBB 3.07 and 3.08 under Windows 7 64-bit spanish.

TIA,

-Pablo
« Last Edit: Jul 19th, 2017, 01:18am by PabloSl » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1273
xx Re: Menu
« Reply #1 on: Jul 19th, 2017, 09:11am »

on Jul 19th, 2017, 01:17am, PabloSl wrote:
When I run my program, while I press the Alt key, the menu bar do not shows proper pull-down menu letter marked with a &.

That's interesting. It normally works but I have noticed an anomaly that may explain what you are seeing. If the window contains no child controls at all then for some reason the Alt underlines don't appear! Adding just a single control makes it work, so for example in this program the accelerator highlighting does work correctly:

Code:
    nomainwin
    button #w, "Close", [quit], LL, 130, 10
    menu #w, &File, &Load, [FileLoad], &Save, [FileSave], E&xit, [quit]
    menu #w, &Edit, Cu&t, [EditCut], &Copy, [EditCopy], &Paste, [EditPaste]
    open "Menu Accelerator Test" for window as #w
    #w "trapclose [quit]"
    wait

[quit]
    close #w
    end 

But if I comment out the Close button the Alt underlines no longer appear! I have no idea why; it will require some investigating. Fortunately the actual menu accelerators continue to work, it's only the highlighting that doesn't.

Richard.
User IP Logged

PabloSl
New Member
Image


member is offline

Avatar




PM


Posts: 2
xx Re: Menu
« Reply #2 on: Jul 19th, 2017, 9:30pm »

Wow! That's impresive. You are a very CLEVER guy!

Thank you so much.

-Pablo
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1273
xx Re: Menu
« Reply #3 on: Jul 19th, 2017, 10:54pm »

on Jul 19th, 2017, 9:30pm, PabloSl wrote:
Thank you so much.

FWIW I have discovered why the menu accelerators are not always highlighted correctly when the Alt key is pressed. I will fix this in the next release of LBB.

Thank you for reporting this issue, which I wasn't previously aware of (it happens only in relatively unusual circumstances, such as a window with no child controls or when a graphicbox has input focus).

Meanwhile the menu accelerators do continue to work correctly, even when the Alt-key highlighting doesn't.

Richard.
« Last Edit: Jul 19th, 2017, 10:56pm by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls