| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu Dec 05, 2002 3:44 pm Post subject: Re-assigning a tool tip |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Dec 05, 2002 7:16 pm Post subject: |
|
|
__________________________________________________________________________________________________________________________
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.
| 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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Dec 10, 2002 2:39 pm Post subject: |
|
|
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 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  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|
|
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
|
|