Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 24th, 2005, 04:19 PM
orient_1_2000 orient_1_2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 orient_1_2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
simple mouse enter command

Hi, im an engineering student and for a project i need a simple piece of delphi code which i cant actually do

I need to start a timer when the mouse cursor enters an image and stop the timer when the cursor leaves. Thats all i need but i cant do it! (the timer has to stop when the image is clicked)

Could anyone write the code for me? Im sure it wont even take that long! Any help appreciated
Cheers

Reply With Quote
  #2  
Old January 30th, 2005, 03:55 PM
Rink Rink is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 2 Rink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 20 sec
Reputation Power: 0
Hey I'm at work so I do not know if this will help and am unable to write the code as I don't have Delphi here...BUT...

You could possibly do it using mouseover function of the picture to start the timer..I'm not sure if there is a !mouseover function. But if there isn't you could have a check in the timer code checking the position of the mouse pointer to see if it is within the picture boundaries. And under the picture click proc you can stop the timer.. It's probably not teh best way but i can't check it myself at the moment sorry.

Hope this helps at least a lil.

Reply With Quote
  #3  
Old January 30th, 2005, 11:42 PM
tinyabs tinyabs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 93 tinyabs User rank is Private First Class (20 - 50 Reputation Level)tinyabs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 13 h 24 m 34 sec
Reputation Power: 4
You can detect MouseMove message and capture it using CaptureMouse. When the cursor leaves the picture, call ReleaseMouse. That way, you can simulate MouseEnter and MouseLeave.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > simple mouse enter command


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT