Skip to Content

UI:ClickEvent 2 times

Hi there

I'm using SDK 6v5

When a Button is pressed on the item form I receive the click event 2 times.

My questions:

1) Is this a bug ?

2) Is there a difference between the pVal-object of first click event and of second click-event ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2004 at 06:10 PM

    Hi Kurt,

    in case you do not already know this, please note that you'll always get "the event" twice:

    pVal.Before_Action = True / False

    Regards,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kurt,

      Frank is right, most events (as far as I know not all) come as "before" and "after" events.

      Keydown is an example where you should only get an after event.

      "before key down" is hard to catch as an event, anyway 😉

      If you compare the pval object, you should be able to tell the difference between the two.

      If the problem persists and you still receive multiple and equal events, you might also want to check your source code for passing on the application object "by value" / mupltiple instances of the same Application object. Each object will get and forward the same event which might be cause of your multiplication.

      HTH Lutz Morrien

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.