|
-
Oct 15th, 2011, 06:39 AM
#1
Thread Starter
New Member
On Hover Popupmenu
Basically what I'm trying to do is create a toolbar launcher, like rocketdock, but instead of having several rows of icons on top, just would like to categorize each by having a popupmenu assigned to a button
lets say i have 4 toolbar buttons
1. websites
2. application
3. online games
4. misc games
what i would like is when you "hover" to each of the 4 buttons, a separate submenu (much like a popupmenu), will show just under the buttons, when you hover on a different button, the popup shown previously should close (or hide) and show the new popupmenu for the hovered new button.
Now, I just have 2 questions...
1. I could use mouseover events + timer, to detect if the mouse "hovers" on the buttons (there are also several ocx to add mouseenter, mouseexit events on various controls), then i show the popupmenu, but the problem is that when you show the popupmenu, it acts like a modal form, meaning, the timer event is blocked to detect hovering on the buttons, plus you have to click on an item in the popup in order to hide the popup, is there codes to show the popupmenu that you can still hover on other buttons?
2. Is there code to hide a popupmenu?
I'm using vb6, my knowledge of vb is intermediate, I have research on the subject but still have not found a proper solution, maybe subclass the popupmenu?
-
Oct 15th, 2011, 06:26 PM
#2
Thread Starter
New Member
Re: On Hover Popupmenu
is there no that could help?
okay, let me explain further, attached a sample image to show how i've implemented the toolbar previously...

okay, I did this project using a toolbar control with 7 toolbar buttons (tbrdropdown) added, subclassed the toolbar so that i can display the submenu with icons on it, the top level buttons have default actions when you click on them, while clicking on the dropdown, pulls down the submenu for each button (as you can see in the image), what i would like to do is that eliminate the tbrdropdown button and replace it with just a normal tbrdefault button, then when i "hover" on the button display a menu (just like in the image), without clicking a dropdown, it functions similar on some websites that have a toolbar of keywords, then if you "hover" on those words, a popupmenu would display...
can this be possible?
Last edited by si_the_geek; Oct 16th, 2011 at 04:18 AM.
Reason: fixed tags
-
Oct 16th, 2011, 07:16 AM
#3
Thread Starter
New Member
Re: On Hover Popupmenu
is there no one that could help?
the "effect" i would like to do is that just like on this website, just look at the top toolbar of keywords, the "internet.com", "it professionals", "developers", on top of this website, when you hover on "it professionals", a popupmenu shows, when you switch to "developers", the popupmenu on "it professionals" hides, and popupmenu for "developers" shows, can you do that in vb6 code?
-
Oct 16th, 2011, 09:17 AM
#4
Fanatic Member
Re: On Hover Popupmenu
you can't expect someone to give you the answer in only 1 day, be patient, people are here to help, but they also got problems of their own to deal with.
Last edited by Justa Lol; Oct 16th, 2011 at 09:20 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|