Re: Win32Lib issue with loadForm()

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> 
> Derek,
> 
> I certainly like the new 'scriptable' form construct. I hope it leads to
> easily integrated custom controls. However, I do have a slight issue. When
> creating menus, I like to use spacers. However, it's not as easy as it could
> be.
> 
> ;; example menu
> Menu, &File
> MenuItem, &New
> MenuItem, &Open...
> MenuItem, &Save
> MenuItem, Save &As...
> MenuItem, -    ;; problem here!
> ;; must use this instead:
> ;;MenuItem, caption=-
> 
> Simply using MenuItem,- produces a MenuItem with a caption of "45". and
> using (-) produces a literal effect, the menu item says "(-)". I don't mind
> using caption= but it would be nice to not have to.

That's a bug. I'll fix that now. It is meant that you can do it just by
writing ...

   MenuItem, -

but I was also thinking, for readability sake, something like ...

  Menu, &File
  MenuItem, &New
  MenuItem, &Open...
  MenuItem, &Save
  MenuItem, Save &As...
  MenuSpacer
  MenuItem, Print Preview...
  MenuItem, Print...
  MenuSpacer
  MenuItem, &Exit

might be nice to have.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu