Difference between revisions of "MouseUp event"

From Xojo Documentation

(Controls implementing the MouseUp event)
 
Line 2: Line 2:
 
| name=MouseUp
 
| name=MouseUp
 
| ownertype=class
 
| ownertype=class
| owner=<See Below>
+
| owner=[[BevelButton]]
 
| parameters=x As [[Integer]], y As [[Integer]]
 
| parameters=x As [[Integer]], y As [[Integer]]
 
| platform=all
 
| platform=all
Line 12: Line 12:
 
{{Information|This event will not occur unless you return [[True]] in the MouseDown event. The return value is ignored.}}
 
{{Information|This event will not occur unless you return [[True]] in the MouseDown event. The return value is ignored.}}
  
The parameters ''x'' and ''y'' are local coordinates, i.e. they represent the position of the mouse click relative to the upper-left corner or the [[Control]]. Mouse clicks that are released to the left or above a control are negative.
+
The parameters ''x'' and ''y'' are local coordinates, i.e. they represent the position of the mouse click relative to the upper-left corner or the [[BevelButton]]. Mouse clicks that are released to the left or above a control are negative.
 
 
=== Controls implementing the MouseUp event ===
 
* [[BevelButton]]
 
* [[Canvas]]
 
* [[CheckBox]]
 
* [[GroupBox]]
 
* [[ImageWell]]
 
* [[Label]]
 
* [[Line]]
 
* [[ListBox]]
 
* [[Oval]]
 
* [[Placard]]
 
* [[PopupMenu]]
 
* [[ProgressBar]]
 
* [[PushButton]]
 
* [[RadioButton]]
 
* [[Rectangle]]
 
* [[RoundRectangle]]
 
* [[Scrollbar]]
 
* [[Slider]]
 
* [[TabPanel]]
 
* [[TextArea]]
 
* [[TextField]]
 

Latest revision as of 22:01, 7 August 2021

Event


BevelButton.MouseUp(x As Integer, y As Integer)

Supported for all project types and targets.

The mouse button was released. Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

Notes

fa-info-circle-32.png
This event will not occur unless you return True in the MouseDown event. The return value is ignored.

The parameters x and y are local coordinates, i.e. they represent the position of the mouse click relative to the upper-left corner or the BevelButton. Mouse clicks that are released to the left or above a control are negative.