Page 1 of 1

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

Posted: Thu Jun 24, 2004 4:42 am
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.

Posted: Thu Jun 24, 2004 8:25 am
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
);

Posted: Thu Jun 24, 2004 4:50 pm
by GPI
be carefull: A warper-DLL isn't allowed!

Posted: Thu Jun 24, 2004 5:01 pm
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 :)