Reputation: 13
I have created a popup menu and assigned it into a button,when i right click the button the popup menu will be displayed.Now i want if i normally click the button that is left click the popup menu to be displayed
Upvotes: 0
Views: 2122
Reputation: 11
It works in Oracle Forms 6:
declare
w_id pls_integer;
begin
w_id := GET_ITEM_PROPERTY(Find_Item('CONTROL.B_REPORTS'), WINDOW_HANDLE);
WIN_API_SHELL.SendMessage( w_id, 516 ); -- WM_RBUTTONDOWN
WIN_API_SHELL.SendMessage( w_id, 517 ); -- WM_RBUTTONUP
end;
Upvotes: 1
Reputation: 16
I completely agree with @APC above; this is not a standard UI convention. And it is not possible to override the default functionality of the right click menu within Forms. You could however, build a small window/canvas/block made to look like the right click menu and default it's starting window position to be the mouse X,Y coordinate.
Upvotes: 0