1. Enrico Angelon
  2. PowerBuilder
  3. Tuesday, 1 October 2024 07:53 AM UTC

Hi all, is there an event that fires on the entire window where I can maybe check if the user clicked on a window object?
I'm trying to create a program where the user has to click on an object in a window to select it and send information about that window object to us via HTTP.
If not, how could I achieve this in other ways? Note that i can't use hierarchy as many windows are already extendend.
Thanks in advance.

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 1 October 2024 15:42 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Enrico -

The quick answer to your question is: No, I do not believe there is a simple, easy way to accomplish this.

I think that in order to accomplish what you have described, each of the "clickable" DragObjects would have to have code in their respective Clicked event scripts to first obtain a reference to the parent window (tab control and custom visual user objects will introduce additional levels of parent objects), then trigger an event in that window. I would be hesitant to place the code you have described in the window's Clicked event because it might interfere with any existing or future event processing... I would instead create and use a custom user event.

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.