Thread View: comp.lang.basic.visual
3 messages
3 total messages
Started by Stacy Rothwell
Wed, 03 Nov 1999 00:00
Popup menu with Combo Box
Author: Stacy Rothwell
Date: Wed, 03 Nov 1999 00:00
Date: Wed, 03 Nov 1999 00:00
14 lines
1458 bytes
1458 bytes
I need help figuring out how to make a "right-click" popup menu on a dropdown list box/combo box. As you're probably aware, the Dropdown list/combo box component is about the only one that doesn't have a MouseUp or MouseDown event, which is usually used to activate the popup menu. Does anyone know another way to do this? (even with a new component from a third party) Thanks for any help! Stacy Rothwell Atlanta, GA
Re: Popup menu with Combo Box
Author: GUILLEMIN
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
43 lines
2061 bytes
2061 bytes
In article <7vqv2d$a37$1@holly.prod.itd.earthlink.net>, Hi there ! In VB 5 there is a cool sample to use POPUPMENU : which i use in a listbox : the given source is : Private Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 2 Then '2=right mouse button :) PopupMenu mnuFile End If End Sub my app which uses this is on www.multimania.com/gedd123 (application to convert CDA to MP3 :) See ya Gerome mailto: gedd123@pop.multimania.com ************ srothwell@earthlink.net says... > I need help figuring out how to make a "right-click" popup menu on a > dropdown list box/combo box. > > As you're probably aware, the Dropdown list/combo box component is about the > only one that doesn't have a MouseUp or MouseDown event, which is usually > used to activate the popup menu. > > Does anyone know another way to do this? (even with a new component from a > third party) > > Thanks for any help! > > Stacy Rothwell > Atlanta, GA > > > >
Re: Popup menu with Combo Box
Author: Haakon
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
14 lines
1663 bytes
1663 bytes
>I need help figuring out how to make a "right-click" popup menu on a >dropdown list box/combo box. I've just browsed trought the WinAPI help file, and it seem to me that there is no way to pick up a right-click on a combo. - Only left; WM_LBUTTONDOWN Sets the focus to the combo box and, for drop-down combo boxes and drop-down lists, can open or close the list. If it opens the list, the window procedure captures the mouse to enable selection by dragging and releasing the mouse button. WM_LBUTTONUP Releases the mouse capture if the mouse opened the list.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads