Board index » delphi » onmousedown event delphi error in treeview?
tex
![]() Delphi Developer |
Sat, 02 Jun 2001 03:00:00 GMT
onmousedown event delphi error in treeview?
i have put some code in a treview.onmousedown event.
procedure Tform1.TreeView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if button=mbright then do something (set caption for testing) It didnt worked properly becouse code executes after Interesting thing is that procedure works fine if i am testing mbleft click. Ok i said it is something wrong with delphi. I tried with it captures the mouse click at the moment when it is pressed but if someone knows solution of the first (error) or the second alternative thanks a lot T...@homemail.com |