forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Changing the Tooltip

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Fri Aug 16, 2002 2:17 pm    Post subject: Changing the Tooltip Reply with quote

Is there anyway of setting/changing a tooltip for a dialog object after
it is created using dialog set? I have tried many times but could
not find out how. Removing the object and adding it again with
the tooltip is not an option for what I am doing.

Thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Fri Aug 16, 2002 2:26 pm    Post subject: Reply with quote

That's a good question. I could never find the answer
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 16, 2002 3:02 pm    Post subject: Reply with quote

If you are having to remove an element such as an EDIT box, you could always add the text to a list, remove the object, add it again, then set it to the text from the list.

BTW, I have always noticed that the tooltips had a space on the end of them, and they aren't quite normal as to the Windows style, for example, they don't fade in and out like the other ones do in Windows XP...

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Fri Aug 16, 2002 3:05 pm    Post subject: Reply with quote

No, I have to change the color of a shape over and over and
want to set a new tooltip every time.

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Que
Valued Newbie


Joined: 25 Aug 2001
Posts: 38
Location: Newaygo, MICH

PostPosted: Fri Aug 16, 2002 3:12 pm    Post subject: Reply with quote

The only way I can think of is opening a new instance of your application and closing the old, sending the new tooltip via a command line parameter. following is an example I threw together that works.... this may not be very feasible for you, but it does seem to accomplish your goal.

Code:

if @null(%1)
   %1 = Original Tooltip
end
Title TipChange
  DIALOG CREATE,TipChange,-1,0,220,100,
  DIALOG ADD,BUTTON,BUTTON1,50,125,70,24,Change Tip,%1
  DIALOG SHOW

:Evloop
  wait event
  goto @event()

:BUTTON1BUTTON
%%newtip = @input(Enter a new tooltip)
run %0 @chr(34)%%newtip@chr(34)
goto close

:Close
  exit


Confused hardly good coding practice... I should delete this post Smile

_________________
Que
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Aug 16, 2002 4:55 pm    Post subject: Reply with quote

Que I'm not aware if you know this but there is a DIALOG REMOVE command which can remove the control, you can then re-add it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group