Recherche
Articles & Documents
Tutoriaux
Lettre d'information
CPDB.Net
Nouvelles des Amis
Visites
Webmaster - Infos
|
- Forum - ppCompiler
Sujet n° 31 |
Problems with popSelectEvent |
le 25/06/2011 @ 22:33 par AcidSnoop
|
Hello there,
i want to ask if someone can help me, i got a problem with the popSelectEvent reaction in my code. I have done the apropriate coding in the event queue but i got no reaction in my program. There's a setup with a popup trigger and the list for the trigger it seems to react properly but i need to do additional tasks after the selection but i can't get any reaction after the selection.
Here is my portion of code:
case eType of ... popSelectEvent: begin FrmCustomAlert( altInfo, 'selected', nil, nil); HandleEvent := true; end; end;
The Alert is just for debuging purpose, i can receive events and handle them, but i got no reaction to the popups list selection after i selected a list item. The selected item is diplayed in the popup after selection.
Maybe someone run into the same problem and found a solution for this.
Sincerly Yours, AcidSnoop |
|
|
Réponse n° 1 -------- le 09/10/2011 @ 12:49 par AcidSnoop
visiteur |
After a few month of trying, i realized, that the PopUp control does not fire events after all. No matter what setup i did, i could not get the popup trigger to fire events, with list, without list, no reaction. I could not even get an ctlSelectEvent when i tap the trigger.
Am i totaly wrong with my thinking or is this a bug of the compiler?
Greetings, AcidSnoop |
|
|
Réponse n° 3 -------- le 11/10/2011 @ 12:33 par AcidSnoop
visiteur |
Yes, all needed bits are set according to nearly all technical documents for popup triggers and lists. I already had a look at the bird sources, the only difference seems to be that i use a general eventhandler instead of a special eventhandler for each form. Could that be the critical point? Are popup events only recognized within an uniqe form only handler? As far as i understand the thrown event for a popup trigger is not form specific, isn't it?
AcidSnoop |
|
|
Réponse n° 4 -------- le 11/10/2011 @ 14:49 par Philippe
visiteur |
Hum, it a long time I have not dealt with Palm OS A possible issue is that the Boolean value returned by the handler is not correct, so that the OS does not dispatch the event correctly. |
|
|
Réponse n° 5 -------- le 11/10/2011 @ 15:22 par AcidSnoop
visiteur |
I did some stuff i should have done earlier. I took the bird source, build an bare skeleton program out of it and added my programs sources to it. (this time with a unique event handler for every form) Now it looks like everything worked out as it should be, and finally the popups are being noticed in the events.
Thank you very much for the pointing in the right direction Philippe. |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|