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

Username:   Password: 
 RegisterRegister   
 ButtonChoose
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tank




PostPosted: Thu Mar 20, 2003 7:25 pm   Post subject: ButtonChoose

I cant get the buttonchoose function to work properly.
I have used the example codes once and i still dont understand...

I was wondering if anyone could help me by responding with a messege that could help me in anyway.

thx
Sponsor
Sponsor
Sponsor
sponsor
Asok




PostPosted: Thu Mar 20, 2003 9:05 pm   Post subject: (No subject)

giving us the code for the function will help. Rolling Eyes
Delta




PostPosted: Thu Mar 20, 2003 10:52 pm   Post subject: Hmmmmmm....

Here maybe this piece of code I just wrote will help you. Smile

code:

% Allows use of Left, Middle, & Right Mouse Buttons
Mouse.ButtonChoose ("multibutton")

var mouseX, mouseY, mouseClick : int

loop
    Mouse.Where (mouseX, mouseY, mouseClick)
    if mouseClick = 1 then % Left Click
        drawfilloval (mouseX, mouseY, 10, 10, 2)
    elsif mouseClick = 10 then % Middle Click
        drawbox (mouseX - 5, mouseY - 5, mouseX + 5, mouseY + 5, 12)
    elsif mouseClick = 100 then % Right Click
        drawfillstar (mouseX - 5, mouseY - 5, mouseX + 5, mouseY + 5, 14)
    end if
end loop


Mod Edit: Delta has been awarded 7 bits. -Asok
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  [ 3 Posts ]
Jump to:   


Style:  
Search: