Kuzmich Posted February 9, 2004 Report Share Posted February 9, 2004 Как сделать, чтобы обрабатывался именно щелчок правой кнопкой по Image? Link to comment Share on other sites More sharing options...
dartman Posted February 9, 2004 Report Share Posted February 9, 2004 procedure TForm1.Image1ContextPopup(Sender: TObject; MousePos: TPoint; var Handled: Boolean); begin application.terminate; end; Link to comment Share on other sites More sharing options...
dmc Posted February 9, 2004 Report Share Posted February 9, 2004 Kuzmich В событии OnMouseDown сделай проверку TMouseButton Button если Button будет равна mbRight, то нажата правая кнопка мыши. Link to comment Share on other sites More sharing options...
Kuzmich Posted February 10, 2004 Author Report Share Posted February 10, 2004 Большое спасибо... Link to comment Share on other sites More sharing options...
Kuzmich Posted March 12, 2004 Author Report Share Posted March 12, 2004 В ту же тему: А как нажатие левой и правой кнопок вместе обработать? Link to comment Share on other sites More sharing options...
Shurr Posted March 13, 2004 Report Share Posted March 13, 2004 А как нажатие левой и правой кнопок вместе обработать? В смысле нажатие двух кнопок одновременно? Если да - то так: procedure TForm1.Image1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin if (Button=mbLeft) and (ssRight in Shift) or (Button=mbRight) and (ssLeft in Shift) then application.terminate;end; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now