Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.MouseUp procedure

Member of TCustomComboBoxprotectedIn unit StdCtrls

Highlights the selected text in the control when the left mouse button is released.

Declaration

pascal
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X: Integer; 
 Y: Integer); override

Arguments

Button

Mouse button for the notification.

Shift

Shift, Alt, or Ctrl modifier for the notification.

X

Horizontal coordinate for the mouse pointer.

Y

Vertical coordinate for the mouse pointer.

Description

MouseUp is an overridden method, and calls the inherited method on entry. MouseUp ensures that the selected text in the control is highlighted when the Left mouse button is released and AutoSelect is enabled. MouseUp calls SelectAll to select the value in the Text property in the edit box for the control. The value in AutoSelected is set to True.

No selection is performed in the method when AutoSelect is set to False.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.