Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse left / right click

Status
Not open for further replies.

bilalch

Programmer
Sep 26, 2003
84
IR

1- i didn't find any trigger from the built-ins at the
mouse left/right click.

2- is there a way to define new event by own.
like on-mouse-left-click etc.

plz help
 
Try this in a WHEN-MOUSE-DOWN trigger on an item

[tt]IF :system.mouse_button_pressed = 1
THEN
message ('left');
ELSIF :system.mouse_button_pressed = 3
THEN
message ('right');
END IF;[/tt]
 
hi dear lewisp,
thanks for ur response
what i could understand is, that these values of 1 & 3 point to the left & right mouse buttons.

if so is there the posibility to show the pop-up menue on right click means when
":system.mouse_button_pressed = 3"
if so how can i point to the pop-up menu.

*** 2ndly i asked if i can create an event by myself like
i want some trigger to fire on some key press from key board.

 
You dont need to define any triggers for a popup menu. Simply attach your pop-up menu to whatever item you want, then use the right mouse button to display the menu.

There is no trigger directly associated with the keyboard. The only way I have found without resorting to a java plug-in is to define a timer that checks if the contents of an item have changed and if so, fires off come code. Using timers is not recommended on web forms, so you would have to use java and some custom-item-event triggers to trap the keyboard events.
 
hi dear lewisp,

can u tell me, how to define timer. i really dont know anything abt it.

bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top