Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-08-2003, 08:19 AM   #1 (permalink)
Keebler
Registered User
 
Keebler's Avatar
 
Join Date: Apr 2003
Posts: 1
Keebler is on a distinguished road
mouseDown method

I can't seem to figure out a way to determine if a mouseDown condition has taken place.

I am attempting something along these lines:

if (mouseDown() == true) {
do something
}

I believe mouseDown should return true, at least that's how I have the mouseDown code written, but I can't seem to determine a way to capture the mouseDown event.

Here's the mouseDown code that gives me my x,y coordinates:

public boolean mouseDown(Event e, int x, int y) {
points.addElement(new Point(x, y));
repaint();
return true;
}

In my paint class I need to check if a mouseDown event occured.

Hope that all makes sense.
Keebler is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class / Method Naming Conventions sde Program Design and Methods 5 06-21-2004 08:16 PM
What do these Methods do? Take a look please gqchynaboy Standard C, C++ 9 04-15-2003 09:07 PM
what method would use more resources? sde PHP 3 03-25-2003 01:26 PM


All times are GMT -8. The time now is 01:57 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting