I'm using C++BuilderX and the 1.2 SDK Microsoft Version. I created a listbox view that i will use as a menu to go to other views. I have added a default handler for that listbox now this piece of code is added to my container file.
what do i insert in here? i want to change views depending on the listbox item that the user selects. I also have an "open" button that the user can select using the left softkey. Please help me! i'm a newbie and i don't know the possible values of aControl and aEventType and valid commands in this function.
you don't necessarily need to do anything on the function. The commands you could handle in ApUi's handle command function and the middle(in arrows) OK button, you could handle in key event handlers.
thanks yucca! however, my problem still exists. i have to handle listbox commands. how i am supposed to get the value current selected selected item index on the listbox?
for example, there is only one command for "open" but the view that will be activated will be based on the selected item in the listbox.
this means that i have to have a set of IF statements in the handlecommandL for that command, doesn't it? what should i put there?
as for the keys, what are the values of the keyevent? i i only see the values of the arrow keys in the examples that i've studied. Aren't the arrowkey values TKeyLeftArrow, TKeyRightArrow, etc? what's the value of the ok button?
maybe you should check the header file, or SDK documentation for the listbox you are using. By reading the functions provided in the class propably , helps you working on it.