what are the parameters needed in my function sender when the event is OnStartDrag?
eg. procedure drag(sender: TObject, {What other parameters are needed?});
what are the parameters needed in my function sender when the event is OnStartDrag?
eg. procedure drag(sender: TObject, {What other parameters are needed?});
functionname( ctrl+space
Originally Posted by irc
code hints aren't there when making a procedure...
i've looked it up on a pascal reference site.
TStartDragEvent = procedure (Sender: TObject; var DragObject: TDragObject) of object;
How do I create a TDragObject?
I am so confused.
in scar tools -> event handlers list
edit: Oh you got that part, but that still will help above.
Question 2:
or somthing like thatSCAR Code:procedure OnStartDrag(Sender: TObject; var DragObject: TDragObject);
var
P:TPoint;
begin
DragObject.Create;
P:=DragObject.DragPos;
DragObject.Free;
Writeln(IntToStr(P.x)+IntToStr(p.y));
end;
Last edited by MylesMadness; 06-24-2010 at 10:06 PM.
thanks myles!!
If you're working on the MSI location viewer (which I'm assuming you are), you don't need to use the OnDrag pointers, you can just reset the location of the image to the mouse position (if the mouse is clicked, of course). However, this is working for you, then great, just ignore me.
I'm saying this because I could never get the Drag pointers to work.![]()
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
In Simba you can see it from the object itself, for example "TPanel.OnStartDrag(" should show you the definition as well![]()
no worriesi'm terrible at explaining stuff.
There are currently 1 users browsing this thread. (0 members and 1 guests)