Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 6th, 2025, 9:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Creating a tooltip
PostPosted: February 5th, 2005, 3:45 am 
Offline

Joined: November 3rd, 2004, 3:18 pm
Posts: 41
I have researched this from the old forum but nothig quite to my liking. I want to create a tooltip for a button that pops up if the user hovers over button for more than 4 seconds. To achieve this I use the action SHOW after a DELAY of 4 seconds, however the delay is only in showing the tip. What I want is to be able to test if the user hovers over the button for longer than 4 seconds then show tip.


You do not have the required permissions to view the files attached to this post.

_________________
Windows Vista Ultimate, 4GB RAM, 1TB Disk
Opus 6 Pro


Top
 Profile  
 
 Post subject: Tooltips
PostPosted: February 5th, 2005, 5:22 am 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Perhaps you could try:

var mousePos = GetMousePosition()
var mouseX = mousePos.x
var mouseY = mousePos.y
wait(4)
tip.Show()
tip.SetPosition(mouseX + 70,mouseY)
tip.SetTransparency(0)


The wait line says wait four seconds before showing the tooltip.
You might want to take a look at Chris Jones' site: http://graphicsinaction.com/forum.htm

Look for the tooltip imp. I think this could help you.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 5th, 2005, 12:46 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hello carib,

Here is another solution (non-script)...

I know the situation you face, as the delay action gets queued and will always activate. I tried working on this myself some time back, by way of variable conditions and whatnot. Robin Garrett then showed me the most simplest way by using frames. It is amazing how simple it is.

You place an object within a frame. The frame is initially hidden and the object is also initially hidden, but has the "Show after 4 seconds" on it's Properties Tab.

This procedure is extremely easy to implement, with minimal actions required.

See attached. :D


You do not have the required permissions to view the files attached to this post.

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: February 5th, 2005, 12:52 pm 
Offline

Joined: November 3rd, 2004, 4:28 pm
Posts: 119
Location: Limousin, France
Steve

The download appears not to exist anymore - I'm interested in it too, is there another way of obtaining it?

Chris

_________________
Chris Kaley
Win XP Pro SP2, Intel 2.66 GHz Core 2 Quad extreme, 4 Gb RAM, NVidia 8800 GTX, 768Mb RAM, Dual Iiyama TFT
Opus Pro XE v4.5, XE v5.5


Top
 Profile  
 
 Post subject:
PostPosted: February 6th, 2005, 12:30 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Khazi wrote:
The download appears not to exist anymore.
Chris


Hi Chris,

This is strange as the link works for me. Here it is again. I have renamed it. Let me know if you have any problems downloading it. :wink:


You do not have the required permissions to view the files attached to this post.

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: February 6th, 2005, 9:22 am 
Offline

Joined: November 3rd, 2004, 4:28 pm
Posts: 119
Location: Limousin, France
Thanks, Steve - it worked for me that time!

Chris

_________________
Chris Kaley
Win XP Pro SP2, Intel 2.66 GHz Core 2 Quad extreme, 4 Gb RAM, NVidia 8800 GTX, 768Mb RAM, Dual Iiyama TFT
Opus Pro XE v4.5, XE v5.5


Top
 Profile  
 
 Post subject:
PostPosted: February 6th, 2005, 4:37 pm 
Offline

Joined: November 3rd, 2004, 3:18 pm
Posts: 41
This is great! Your solution is very simple and I will try and incorporate chris's postion sensiteive scrip in my solution.

_________________
Windows Vista Ultimate, 4GB RAM, 1TB Disk
Opus 6 Pro


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group