FormComboBoxControl.labelMouseDblClick Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Is called when the label for the control is double-clicked by the user.
public:
virtual int labelMouseDblClick(int _x, int _y, int _button, bool _Ctrl, bool _Shift);
public virtual int labelMouseDblClick (int _x, int _y, int _button, bool _Ctrl, bool _Shift);
abstract member labelMouseDblClick : int * int * int * bool * bool -> int
override this.labelMouseDblClick : int * int * int * bool * bool -> int
Public Overridable Function labelMouseDblClick (_x As Integer, _y As Integer, _button As Integer, _Ctrl As Boolean, _Shift As Boolean) As Integer
Parameters
- _x
- Int32
A Boolean value that indicates whether the SHIFT key is down.
- _y
- Int32
A Boolean value that indicates whether the SHIFT key is down.
- _button
- Int32
A Boolean value that indicates whether the SHIFT key is down.
- _Ctrl
- Boolean
A Boolean value that indicates whether the SHIFT key is down.
- _Shift
- Boolean
A Boolean value that indicates whether the SHIFT key is down.
Returns
0 (zero) if the event has been handled.
Remarks
Typically, when this method is overridden, the return value from a call to the super method is returned. This event is called only if a value is specified for the label of the control and the ShowLabel property of the control is set to Yes.
The following example shows how to display the parameters of a labelMouseDblClick event in the Infolog.
public int labelMouseDblClick(int x,
int y,
int button,
boolean Ctrl,
boolean Shift)
{
int ret;
;
if (Shift)
{
info( "Shift set" );
}
if (Ctrl)
{
info( "Ctrl set");
}
info (strfmt("x, y: %1 %2 button: %3", x, y, button));
ret = super(x, y, button, Ctrl, Shift);
info (strfmt("ret: %1", ret));
return ret;
}