Menu
Recherche




Articles & Documents

Fermer Tutoriaux

Lettre d'information
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
22 Abonnés
CPDB.Net

Nouvelles des Amis
Visites

   visiteurs

   visiteurs en ligne

Webmaster - Infos
forum.gifForum - ppCompiler - Sujet n°31

Forum - Forum
ppCompiler - ppCompiler


actif  Sujet n° 31  Problems with popSelectEvent

le 25/06/2011 @ 22:33
par AcidSnoop

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
Ecrire à AcidSnoop   Poster une réponse  Haut

[]   

Réponse n° 1
--------
le 09/10/2011 @ 12:49
par AcidSnoop

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
Ecrire à AcidSnoop   Poster une réponse  Haut
Réponse n° 2
--------
le 11/10/2011 @ 09:27
par Philippe

Anonyme

visiteur
Popup triggers are used in Bird and seems to run well. Are the "enabled" and "usable" bit set in resource ? You may have a look to the Bird source code (builder.pas and builder.rsrc).
Philippe.
Ecrire à Philippe   Poster une réponse  Haut
Réponse n° 3
--------
le 11/10/2011 @ 12:33
par AcidSnoop

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
Ecrire à AcidSnoop   Poster une réponse  Haut
Réponse n° 4
--------
le 11/10/2011 @ 14:49
par Philippe

Anonyme

visiteur
Hum, it a long time I have not dealt with Palm OS k 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.
Ecrire à Philippe   Poster une réponse  Haut
Réponse n° 5
--------
le 11/10/2011 @ 15:22
par AcidSnoop

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. n
Ecrire à AcidSnoop   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 




^ Haut ^