Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic tool tip... 1

Status
Not open for further replies.

BigBadDave

Programmer
May 31, 2001
1,069
EU
...Ok, I got my dynamic tool tip to work, now what I want it to do is make it grow to fit the amout of text I send it in a variable, I have a feeling I need to get the length of the text string and set the tool tip accordingly.

Any ideas appreciated. Regards

Big Dave

davidbyng@hotmail.com

 
um..did i miss something dave?.what are you talking about?.
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Guess you gave yourself your own answer!
IMHO, a tool tip can't be that long after all, and since your probably using a mc, just expand the xscale according to the string's lenght.

Yes Carl, Dave did have a thread on this a while ago!

Regards,
wink4.gif
ldnewbie
 
Yeah,
But can you make the size of a text area grow?? Regards

Big Dave

davidbyng@hotmail.com

 
By the way,
It wasn't me that had a post on tool tips though someone did. Regards

Big Dave

davidbyng@hotmail.com

 
You can't dynamically alter the size of a textbox but you could work around it.

Make the textbox long enough to accept the longest string you're going to pass to it - its bounding area is invisible in the movie anyway so nobody's going to know.

Read the string length programatically and then resize the background graphic (I assume it's just a plain filled rectangle) that the text sits on.

The overall effect would be of a text area which resizes to fit even though there's a bit of cheating going on behind the scenes.

Good enough?
 
Yeah I figured it would have to be something like that.

Cheers Wangbar

PS. We will have to arrange to go out for that drink Regards

Big Dave

davidbyng@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top