Is there a way to have the dropdown box open using this class ?
I dont see anything that would do this.
TIA
open drop down box using wxComboBox ?
Hi,
If you're using MSWindows (which I don't) then I understand the following line from the docs to mean what you want:
wxCB_SIMPLE Creates a combobox with a permanently displayed list. Windows only.
If you're not using MSWindows, you would have to try to hack into the underlying control (in wxGTK that means a gtk widget). You'd be better off using a wxListBox
Regards,
David
If you're using MSWindows (which I don't) then I understand the following line from the docs to mean what you want:
wxCB_SIMPLE Creates a combobox with a permanently displayed list. Windows only.
If you're not using MSWindows, you would have to try to hack into the underlying control (in wxGTK that means a gtk widget). You'd be better off using a wxListBox
Regards,
David
-
- Earned a small fee
- Posts: 23
- Joined: Sun Feb 26, 2006 8:03 pm
- Location: Linwood Pa USA
- Contact:
I dont want it permanently displayed. When they type something in the edit box (which is a wxTextCtrl I believe) of the combo box and there is an item that matches in the combo box I want to display it by having the combo drop down.
Basically im trying to do something like what happens when you type urls in the address bar of firefox. Just type in www. for example and the drop down part opens up and shows relevant items. Thats what I am trying to do here.
This is a command bar where they type commands and I autocomplete them(if turned on anyway) as they type to save them from having to type the whole command out.
Basically im trying to do something like what happens when you type urls in the address bar of firefox. Just type in www. for example and the drop down part opens up and shows relevant items. Thats what I am trying to do here.
This is a command bar where they type commands and I autocomplete them(if turned on anyway) as they type to save them from having to type the whole command out.
-
- Super wx Problem Solver
- Posts: 317
- Joined: Sat Mar 18, 2006 10:41 am
- Location: Ustek, Bohemia
On Windows, this should do:
Code: Select all
SendMessage(
(HWND)combox->GetHandle(),
CB_SHOWDROPDOWN /* 0x014F */,
TRUE, 0);