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

Username:   Password: 
 RegisterRegister   
 Mouse Event Handler
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ericfourfour




PostPosted: Fri Nov 10, 2006 4:47 pm   Post subject: Mouse Event Handler

I made a mouse handler. It handles when the mouse is pressed, when it is released, when the mouse is clicked and when the mouse is double clicked. A knowledge of polymorphism and inheritance is recommended to understand how to use this.

I attached the mouse handler, an example child handler and a program to use it.



test.t
 Description:
The application using the handler.

Download
 Filename:  test.t
 Filesize:  118 Bytes
 Downloaded:  93 Time(s)


MouseMessage.tu
 Description:
The example child class that displays what event happened, with what button, and where.

Download
 Filename:  MouseMessage.tu
 Filesize:  541 Bytes
 Downloaded:  83 Time(s)


MouseHandler.tu
 Description:
The mouse event handler class.

Download
 Filename:  MouseHandler.tu
 Filesize:  2.34 KB
 Downloaded:  85 Time(s)

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

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: