| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jan 18, 2004 4:36 pm Post subject: NEW MENU FEATURE IN VDS 5.01!! |
|
|
I just came across this new "feature" on the menus, which wasn't available
in VDS 5.00 or below!
If you add no items to a menu, VDS will now trigger an event when you
click on the menu label name like it was a menu item.
Here's an example (note you need VDS 5.01 to try it):
| Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,MENU,File,Exit
DIALOG ADD,MENU,CLICK_HERE
DIALOG ADD,MENU,Help,Help
DIALOG SHOW
:evloop
wait event
goto @event()
:ExitMENU
:HelpMENU
info You clicked Exit menu or Help menu
goto evloop
:CLICK_HEREMENU
warn NEW FEATURE!
goto evloop
:close
exit |
This means excellent new things such as, for example, Prakash can use
his VDSPOPUP in combination with these new possible menu events to
create a truly realistic menu with his DLL.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Jan 18, 2004 6:17 pm Post subject: |
|
|
This is nice, although it was already possible by using the right callback events...  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jan 18, 2004 8:15 pm Post subject: |
|
|
Well I'm excited about it.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Jan 21, 2004 7:24 am Post subject: |
|
|
| Skit3000 wrote: | | This is nice, although it was already possible by using the right callback events... |
Are U talking of setting a Option Msgevent for WM_COMMAND ?
It was not working well in VDS 5.00 although it does well in 5.01. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|