Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Key Label RightMouse (does it block RightClick event?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01023788
Message ID:
01023807
Views:
13
>If an "On Key Label RightMouse..." has been established, and I then rightclick on a control that has a rightclick event, will the rightclick event for the control still fire after the command associated with the "On Key Label" is executed? Or do I need to explicitly issue an oControl.RightClick() statement within the code running during the trapped RightMouse if I still want the RightClick event to be executed? Thanks very much.

I think ON KEY LABEL ... take a precedence over RightClick() event and RightClick() event never fires. Here a simple test form, just RightClick ON Text1:
oForm = CREATEOBJECT("Form1")
oForm.Show(1)


**************************************************
*-- Form:         form1 (d:\all_zapl\test.scx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   06/16/05 09:28:09 AM
*
DEFINE CLASS form1 AS form


	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"


	ADD OBJECT text1 AS textbox WITH ;
		Height = 23, ;
		Left = 62, ;
		Top = 46, ;
		Width = 100, ;
		Name = "Text1"



	PROCEDURE Init
		ON KEY LABEL RIGHTMOUSE WAIT WINDOW "Right Mouse ON CLICK"
	ENDPROC


	PROCEDURE text1.RightClick
		WAIT WINDOW "Text1 RichtClick()"
	ENDPROC


ENDDEFINE
*
*-- EndDefine: form1
**************************************************
BTW why you use ON KEY LABEL?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform