forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Check VDS6 named menus

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Mon Feb 23, 2009 12:28 pm    Post subject: Check VDS6 named menus Reply with quote

Is not possible to check a menu item if it uses the new VDS 6 feature of naming menu items Question

The following text from the help file clearly states that "The registry method is not used if the menu item has been named". Fair enough. So what is the new method? Reading the whole menu help topic seems to suggest that 'dialog set' might be able to be used to set and clear a checkbox on a named menu item.

This next bit clearly suggests that there is a method of setting the checkbox for named menu items.
"To specify whether a menu item should be enabled or disabled, or checked, either:

ˇ the menu item should be
named, as described above, so that DIALOG ENABLE and DIALOG DISABLE can be used."
It only mentions 'DIALOG ENABLE and DIALOG DISABLE'. There is no mention of 'DIALOG SET' in regard to setting or clearing a menu item's checkbox. I've tried dialog set but it does not work.

Am I missing something here Question Or do I have to remove the menu item names and go back to using the registry to set and clear checks on menu items Question Rolling Eyes

Quote:
Menu items are described using the form <item name>;<shortcut key>;<bitmap>. Only <item name> is mandatory, and must be unique.

ˇ <item name> specifies the name and text of the menu item. It takes the form <name>:<text> where <name> and its separating colon are optional. Menu items do not usually have names. If <name> is omitted then a <text>MENU event is generated when the menu item is clicked. If <name> is specified, then the event will be <name> instead. If a menu item is named then it is possible to change the menu item text and enable/disable it using the DIALOG SET command.

A menu item may be enabled or disabled or show a check box, depending on the current context of the program. To specify whether a menu item should be enabled or disabled, or checked, either:

ˇ the menu item should be named, as described above, so that DIALOG ENABLE and DIALOG DISABLE can be used.

ˇ registry values must be set in the program's default registry key to show the required state. The names of these registry values must match the text of the corresponding menu item. These registry values will be checked whenever the drop-down menu is displayed, so that the menu is shown in the correct context. To show a check box against a menu item, use the command: REGISTRY WRITE, DEFAULT, , <name>,1. To clear the check box, set the value <name> to null, or delete the value.

The registry method is not used if the menu item has been named.

_________________
cheers

Dave
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Mon Feb 23, 2009 4:12 pm    Post subject: Reply with quote

Hi DaveŽ :

I have been trying in VDS6 the MENU control... Exclamation

Indeed, there is no way (in VDS6) to check an item menu... but however you can REMOVE items Shocked

Code:
  DIALOG CREATE,Menu test,-1,0,535,160
  DIALOG ADD,MENU,MENU1,One:Uno;Shift+F7;"c:\windows\system32\shell32.dll,20"|Two:Dos|ThreeMENU:Tres|Four:Cuatro
  DIALOG SHOW

  rem You can DISABLE, ENABLE, REMOVE menu items...
  dialog remove,Two
  wait event
  info @event()

___________

uVeDeSe
____________
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Feb 23, 2009 5:56 pm    Post subject: Reply with quote

I myself was completely at a loss with the information for the menu also and eventually gave up on it and used that ssmenu.dll instead.

Also, even if the check/uncheck option of the VDS6 menu worked, I'd still refuse to use it since it seemed to require usage of the registry for it to work, and that just seemed.....well, retarded!

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group