Latest versions
...
Menu  Language: fr
Search




Articles & Documents

Close Tutorials

Preferences

Connect again
---

Your name (or pseudo) :

Your secret code (associated with your pseudo)


 Count of members 459 members


Connected :

(nobody)
CPDB.Net

Friends News
Google Ads
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
24 Subscribers
Webmaster - Infos
Visits

   visitors

   visitors online

Pagerank
forum.gifForum - ppCompiler [EN] - Topic #31

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


active  Topic # 31  Problems with popSelectEvent

25/06/2011 @ 22:33
by 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
Write to AcidSnoop   Post an answer  Top

[]   

Answer n 1
--------
09/10/2011 @ 12:49
by 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
Write to AcidSnoop   Post an answer  Top
Answer n 2
--------
11/10/2011 @ 09:27
by Philippe

Anonymous


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.
Write to Philippe   Post an answer  Top
Answer n 3
--------
11/10/2011 @ 12:33
by 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
Write to AcidSnoop   Post an answer  Top
Answer n 4
--------
11/10/2011 @ 14:49
by Philippe

Anonymous


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.
Write to Philippe   Post an answer  Top
Answer n 5
--------
11/10/2011 @ 15:22
by 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
Write to AcidSnoop   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




^ Top ^