Dernières versions
...
Menu  Langue: en
Recherche




Articles & Documents

Fermer Tutoriaux

Préférences

Se reconnecter
---

Votre nom (ou pseudo) :

Votre code secret


 Nombre de membres 421 membres


Connectés :

( personne )
CPDB.Net

Nouvelles des Amis
Pub Google
Lettre d'information
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
24 Abonnés
Webmaster - Infos
Visites

   visiteurs

   visiteurs en ligne

Pagerank
forum.gifForum - ppCompiler [EN] - Sujet n°31

Forum - Forum
ppCompiler [EN] - ppCompiler [EN]


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


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


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


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


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


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   Cloturer Cloturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 




^ Haut ^