Combobox problems

Discuss PocketC for CE (including Desktop Edition)

Postby Glasswalker on Thu Apr 17, 2003 6:57 pm

Hello there... I am having some trouble with the combobox controls...

I need to have my program execute code when the combobox contents have changed...

like an On_Change() Event type...

when I use buttondown event, it executes every time I drop the menu down... which means whatever I select in the list doesn't take effect till the next time I drop the menu down...

I need my code (which copies a value into a variable) to execute each time the value in the combobox changes... so the variable is allways up to date...

Is there a way to do this?

Posts: 47
Joined: Wed Mar 21, 2001 12:18 am
Location: Canada

Postby guy on Fri Apr 18, 2003 5:04 am

Use a PM_COMMAND event then call getnotify() and check for the appropriate CBN_ code. I think it's CBN_SELCHANGE. Look at winuser.h from CEAPI or windefs.h from PCForm.

PocketC CE API interface:
PCForm and CE API forum:
PocketC CE API interface:
PCForm and CE API forum:
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 4 guests