What am I doing wrong?
When selecting an item in a ComboBox, the EventID() function returns a 1 (RightClick) rather than a "Change".
Am I missing something? It's not a biggie since I can still do what I need, but it is just unexpected.
Thanks!
ComboBox - Selecting an item issues "RightClick"
-
- User
- Posts: 14
- Joined: Sun Dec 14, 2003 4:57 am
- Location: Wichita, Kansas
- Contact:
ComboBox - Selecting an item issues "RightClick"
Michel "K-17" Korwin-Szymanowski
the combobox doesn't support EventType!
the message is a API message, not a PB_Constant value!
the message is a API message, not a PB_Constant value!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: ComboBox - Selecting an item issues "RightClick&
You get PB messages as well as Windows API messages in the event loop.Michel_k17 wrote:When selecting an item in a ComboBox, the EventID() function returns a 1 (RightClick) rather than a "Change".
In this case, you get an API notification [CBN_SELCHANGE].
Combobox notifications and messages : http://msdn.microsoft.com/en-us/library ... S.85).aspx
Furthermore, #CBN_SELCHANGE = 1 = #PB_EventType_RightClick = a lot of other constants.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- User
- Posts: 14
- Joined: Sun Dec 14, 2003 4:57 am
- Location: Wichita, Kansas
- Contact: