 |

05-27-2004, 09:33 AM
|
|
Centurion
|
|
Join Date: Dec 2003
Posts: 131
|
|
pop up menus
|
i'm curious what some of the different ways to create a popup menu are... so far it just seems to be a combobox... but i'm wondering if there's anyway to make a label or maybe a command button do a popup menu?
|
|

05-27-2004, 09:39 AM
|
 |
Centurion
|
|
Join Date: Oct 2003
Location: London, England.
Posts: 151
|
|
You can create a popup menu on anything.
Code:
PopupMenu mnuName, , , mnuNameDefault
F2 is your friend 
|
|

05-27-2004, 09:45 AM
|
|
Centurion
|
|
Join Date: Dec 2003
Posts: 131
|
|
|
i'll try to figure that out
i hit F2 and i have no idea what anything in that menu means.
|
|

05-27-2004, 09:48 AM
|
 |
Centurion
|
|
Join Date: Oct 2003
Location: London, England.
Posts: 151
|
|
F2 opens the Object Browser thingie in VB. 
|
|

05-27-2004, 09:51 AM
|
 |
Centurion
|
|
Join Date: Oct 2003
Location: London, England.
Posts: 151
|
|
|

05-27-2004, 09:55 AM
|
|
Centurion
|
|
Join Date: Dec 2003
Posts: 131
|
|
|
man am i ever confused. the sample makes sense, thanks - but what i don't get is where the menu comes from. All you had for code was
"PopupMenu mnuPopup, , , , yay"
but somehow it has all those options - but i didn't see them anywhere in the code :\ where did they come from?
|
|

05-27-2004, 10:03 AM
|
|
Centurion
|
|
Join Date: Dec 2003
Posts: 131
|
|
|
i think i figured it out
you simply made an actual menu - but made it so it wasn't Visible right? then the Menu As Object part is just the name of the menu... then the Default menu is what menu is automatically shows when it first comes up? is that right>?
|
|

05-27-2004, 10:25 AM
|
 |
Centurion
|
|
Join Date: Apr 2004
Posts: 181
|
|
If you wan't to get real involved - and create a popup for anything, anywhere on your form, using either left or right or middle mouse button, use the API method.
If you don't have it, get the API guide from www.ALLAPI.net here:
http://www.mentalis.org/agnet/appdown.shtml
install the program and look for popup, it is a little bit of work to code, but well worth it. If you can't figure it out, let me know and I'll post a sample.
|
__________________
If you build a man a fire, you warm him for a day.
If you set a man on fire, you warm him for the rest of his life.
|

05-27-2004, 10:28 AM
|
|
Banned
|
|
Join Date: May 2004
Posts: 37
|
|
|
dont... you can call popupmenu anytime. and you can set x and y to anywhere. it has all functiality, as far as i know.
just use the events
|
|

05-27-2004, 10:33 AM
|
 |
Centurion
|
|
Join Date: Apr 2004
Posts: 181
|
|
|
to each their own I suppose...
|
__________________
If you build a man a fire, you warm him for a day.
If you set a man on fire, you warm him for the rest of his life.
|

05-28-2004, 04:53 AM
|
 |
Centurion
|
|
Join Date: Oct 2003
Location: London, England.
Posts: 151
|
|
Quote:
|
Originally Posted by Wizzy
i think i figured it out
you simply made an actual menu - but made it so it wasn't Visible right? then the Menu As Object part is just the name of the menu... then the Default menu is what menu is automatically shows when it first comes up? is that right>?
|
Yes  Untick the parent menu's Visible checkbox to make it invisible.
'yay' was the name of the default menu, the one that comes up bold.
'mnuPopup' was the parent menu
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|