1. Win32Lib issue with loadForm()
- Posted by "Greg Haberek" <ghaberek at wowway.com> Jul 02, 2004
- 452 views
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. ~Greg
2. Re: Win32Lib issue with loadForm()
- Posted by Derek Parnell <ddparnell at bigpond.com> Jul 02, 2004
- 410 views
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
3. Re: Win32Lib issue with loadForm()
- Posted by Derek Parnell <ddparnell at bigpond.com> Jul 02, 2004
- 409 views
Derek Parnell wrote: > > 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. Ok, the fix was simple. I've updated the 'Patches' section on the web site so if you want to patch your copy now before waiting for v0.60.1, go to http://www.users.bigpond.com/ddparnell/euphoria/win32lib_patches.htm then find the patch for the "one-character caption problem". -- Derek Parnell Melbourne, Australia
4. Re: Win32Lib issue with loadForm()
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Jul 02, 2004
- 426 views
Derek Parnell wrote: > > Ok, the fix was simple. I've updated the 'Patches' section on the web site > so if you want to patch your copy now before waiting for v0.60.1, go to > > <a > href="http://www.users.bigpond.com/ddparnell/euphoria/win32lib_patches.htm">http://www.users.bigpond.com/ddparnell/euphoria/win32lib_patches.htm</a> > > then find the patch for the "one-character caption problem". Derek, That's a great page. Perhaps someone would like to volunteer to keep an unofficial version that's got all 'approved' patches applied? Once again, I'm tempted to crank up the old sourceforge site (http://sourceforge.net/projects/win32libex/) It'd be a good way to allow others to contribute and keep everything up to date. Matt Lewis