[futurebasic] Re: [FB] + and - for zoom in menus

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2010 : Group Archive : Group : All Groups

From: Max Taylor <maxclass@...>
Date: Thu, 28 Jan 2010 13:14:22 -0800
On Jan 28, 2010, at 1:06 PM, Robert Covington wrote:

> Note, I don't have a standard window menu in my program, I build it...that is because I have like 7 palettes to add. I stick my window items after that , manually.
> 
> Old code though. They didn't have Standard Window menus back in 2001 I don't think, or I wasn't aware of them.
> 
> On Jan 28, 2010, at 4:02 PM, Robert Covington wrote:
> 
>> My docs have little widgets at bottom left to handle zoom needs. I have a user requesting a manual + and - Zoom, same as Safari and others do for Command - ( + ) to Zoom in, and Command - ( - ) to zoom out.
>> 
>> One may note that despite the menu command character in the menu saying command  +, which requires the shift key to actually type as '+' in use, that the Safari menu responds exactly as if they typed ONLY Command  and = (the equals) instead of the additional Shift as well to get the +...so it is trapping the Equals sign I guess, despite it saying +.
>> 
>> So I'm wondering how to implement this the best way in FB, since I only get the Plus (+) character sending to my MENU function, when also adding Shift!
>> 
>> I can manually trap for the = sign and implement it as Plus behavior, which also allows Command + Shift  and + to work still, but the menu does not flick then?
>> 
>> I'm tired and rusty lately, so forgive if this is blatantly obvious.
>> 
>> Basically the issue is, they have the + key on the menu item, but the = sign or Equals key plus apple key (command) is engaging it regardless.
>> 
>> So...?

Robert,

You might try something like using option-upArrow and option-DownArrow to represent zoom in and zoom out. Then it would not have to be tied to any menu item.

Or, add a "Zoom In" and "Zoom Out" button somewhere near the top left of the window and implement zoom according to which button is clicked. Set some increment/decrement amount like .1 each time the buttons are clicked. I had such a thing in some software and an "Increment/Decrement" setting in preferences so that the user could set their own values (within an internally fixed range).

Just some thoughts.

Max Taylor
The MaxClass Guy