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 


Re-assigning a tool tip

 
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: Thu Dec 05, 2002 3:44 pm    Post subject: Re-assigning a tool tip Reply with quote

I don't remember if this can be done of not, and I am having a heck
of a time. Can a tool tip for a dialog element be changed once it is
created? I have a bitbtn that does not have a tool tip and I want
to assign a tool tip to it after it is created. Can that be done?

Thanks,

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


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Dec 05, 2002 7:16 pm    Post subject: Reply with quote

__________________________________________________________________________________________________________________________
I'm pretty sure that you would need to re-create the dialog element.
However, try this example. This changes the BITBTN so fast I didn't even
notice. Smile

Code:
  DIALOG CREATE,BITBTN Test,-1,0,181,125
  DIALOG ADD,BITBTN,BITBTN,14,34,92,20,,BitBtn,Click the 'Change' button to change text
  DIALOG ADD,BUTTON,Change,52,20,94,24,Change Tooltip
  DIALOG SHOW
:BITBTNBUTTON
:evloop
wait event
goto @event()
:Changebutton
%%text = @input(Enter new text:)
 if @ok()
  DIALOG REMOVE,BITBTN
  DIALOG ADD,BITBTN,BITBTN,14,34,92,20,,BitBtn,%%text
 end
goto evloop
:Close
exit

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


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Dec 10, 2002 2:39 pm    Post subject: Reply with quote

LiquidCode,
Take a look at the BassModGadget player on my website. It has a pretty good example of adding ToolTips through the Win32 API. With a little tweaking you could change the ToolTips on the fly. The custom ToolTips are in the VDS 3.x sections of the code. Since VDS 3.x does not have ToolTips Confused I wanted to come as close as I could to the VDS 4.x sections of the code. Also I have tried to use the TTN_NEEDTEXT notification message with Tooltips before but I did not have any luck. But with this example because you have the memory address of the ToolTips text string variables you should be able to change the text pretty easy. Anyway good luck Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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