Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help ASAP! don't know how to use the click and drag line?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chibitenshi_03




PostPosted: Thu Jan 15, 2004 10:04 pm   Post subject: help ASAP! don't know how to use the click and drag line?

How do i make so that the line doesn't erase?

var x, y, btnNumber, btnUpDown, buttons : int
var nx, ny : int
loop
Mouse.ButtonWait ("down", x, y, btnNumber, btnUpDown)
nx := x
ny := y
loop
Draw.Line (x, y, nx, ny, 0)
exit when Mouse.ButtonMoved ("up")
Mouse.Where (nx, ny, buttons)
Draw.Line (x, y, nx, ny, 1)
end loop
Mouse.ButtonWait ("up", nx, ny, btnNumber, btnUpDown)
Draw.Line (x, y, nx, ny, 2)
end loop
Sponsor
Sponsor
Sponsor
sponsor
KukuriChan




PostPosted: Thu Jan 15, 2004 10:10 pm   Post subject: (No subject)

Hey Chibi_Tenshi! I think you'll know who this is. Wink


Anyways, try doing this.
%make a temporary drawing of the area

temppic := Pic.New (x, y, x2, y2) <-- Put this after the nx:=x and ny :=y

Pic.Draw (canvas, temppic, 0, 0, picCopy) <-- Put this right before this
Draw.Line (x, y, nx, ny, 1)
chibitenshi_03




PostPosted: Thu Jan 15, 2004 10:27 pm   Post subject: (No subject)

do YOU know who i am then? Kukuri chan!
chibitenshi_03




PostPosted: Thu Jan 15, 2004 10:29 pm   Post subject: (No subject)

umm.....wat do i declare tempic as? int? string?
Neja




PostPosted: Thu Jan 15, 2004 11:14 pm   Post subject: (No subject)

int
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: