"Simulate" Right-Mouse-Click Native | "Windows")

balta

Member
Hello,

I have created in browse a specific sub-menu to copy the values of browse.

1635156993173.png

The problem is that in doing this, the native Mouse-right of Windows is disabled...

Any solution to call native right Mouse-right-click of Windows in fill-in?

Thanks,
Baltazar
 

Osborne

Active Member
I am not sure but it could be the anywhere that is causing the problem.

If you only set the trigger for the browse does that work?:
Code:
ON RIGHT-MOUSE-CLICK OF BROWSE-1 IN FRAME DEFAULT-FRAME
DO:
   ...
END.
If you have multiple browses or the browse is dynamic then set this trigger at run-time.
 

balta

Member
I am using an include and I don't know if in window/dialog are browsers created.

The "fix" that I do is using RIGHT-MOUSE-DBLCLICK...

I think to work that I want I have 2 options:
  1. to loop all fields/browses/etc. in dialog and only apply the rule if is a browse
  2. create a menu (in OE) for fill-in
 

Osborne

Active Member
I think I see the problem. Are you able to determine the fields/browses/etc. by walking the widget tree? If so, can you set the trigger doing something similar to?:
Code:
DO WHILE hObject <> ?:
   IF hObject:TYPE = "BROWSE" THEN
      ON RIGHT-MOUSE-CLICK OF hObject PERSISTENT
         RUN whatever IN THIS-PROCEDURE (INPUT SELF).
   hObject = hObject:NEXT-SIBLING.
END.
 
Last edited:
Top