How to tell if a combobox gadget is "open" or clos

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

How to tell if a combobox gadget is "open" or clos

Post by halo »

I am using a PureBasic DLL to add gadgets to a Blitz3D window.

My ability to detect events is compromised, but I am still able to get a gadget's state. The problem is that when a combobox gadget is pulled open, even running the mouse over an item changes the gadget state. I don't want to go making changes every time the mouse moves, I only want to make changes once the combobox is closed and the new item selected. Is there any way to tell the opn/close state of a combobox gadget?

Thanks.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

SendMessage(
(HWND) hWnd, // handle to destination window
CB_GETDROPPEDSTATE, // message to send
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // not used; must be zero
);
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

be carefull: A warper-DLL isn't allowed!
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

He's not making a wrapper DLL, he uses PB to draw the controls/interface and Blitz3D to display 3D graphics. The 2 communicate to give a Windows interface with great 3D graphics.

A very simple way to use comboboxes is to get the current text and store it in a variable. Next time combobox is triggered, get text and compare to last text. If it's the same... do nothing. If text has changed, then user has selected something new :)
Image Image
Post Reply