How to have a menu item that can be clicked but also has a submenu
Posted on 2003-10-21
I need to be able to have items in a menu that can be clicked on but also have a submenu of items. (TrackPopUpMenu...)
The way I understand right now in the windows menus an item is either an item and can be clicked or a submenu and then only its items can be clicked.
What I need is something like in the Internet explorer favorites where if you double click on a folder it opens the folder (the folder of course has subitems) only I would rather it happened when you click and not double click.
Is there any way to detect a click or doubleclick (not OnSelect which happens when it is highlighted) on the menu item that has a submenu ?
I will accept any type of solution that will solve this problem meaning any technology or even custom compontents that give this functionality.
I already have a menu like this in DHTML but I would like to have the functionality in an active-x or something because I want the menu in an internet explorer toolbar that I have created.
Also I would much prefer if the menu behaved as the windows menus meaning I would not have to click on an arrow to open each level of the menu unless there is no other choice.
I am giving a lot of points for this so I expect a serious answer please that will help to solve my problem.
Thanks very much in advance.