Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
procedure Handle_WM_MouseMove(var msg:TMessage); message WM_MOUSEMOVE;
procedure Handle_WM_LButtonUp(var msg:TMessage); message WM_LBUTTONUP; // left button
procedure Handle_WM_MButtonUp(var msg:TMessage); message WM_MBUTTONUP; // middle button
procedure Handle_WM_RButtonUp(var msg:TMessage); message WM_RBUTTONUP; // right button
procedure TForm1.Handle_WM_LButtonUp(var msg:TMessage);
begin
if Msg.LParam = WM_LBUTTONUP then
edit1.Text := 'up'
else
edit1.Text := 'down'
end;
procedure WMLButtonUp(var Msg:TMessage); message WM_LBUTTONUP;
procedure WMLButtonDown(var Msg:TWMMouse); message WM_LBUTTONDOWN;
---------------------------------------
procedure TForm1.WMLButtonUp(var Msg: TMessage);
begin
Edit1.Text:='Up x:'+IntToStr(Msg.LParamLo)+' y:'+IntToStr(Msg.LParamHi);
inherited;
end;
procedure TForm1.WMLButtonDown(var Msg: TWMMouse);
begin
Edit1.Text:='Down x:'+IntToStr(Msg.XPos)+' y:'+IntToStr(Msg.YPos);
inherited;
end;
TMyComboBox=class(TComboBox)
published
OnMouseDown;
OnMouseMove;
OnMouseUp;
OnMouseWheel;
OnMouseWheelDown;
OnMouseWheelUp;
end;
procedure ComboMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
----------------------------------
procedure TForm1.ComboMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Edit1.Text:=Format('MouseUp x:%d y:%d',[X,Y]);
end;
type
TFrigComboBox=class(TComboBox);
{Note the above declaration is outside of any method}
procedure TForm1.FormCreate(Sender: TObject);
begin
TFrigComboBox(ComboBox1).OnMouseUp:=ComboMouseUp;
end;