| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Fri Aug 16, 2002 2:17 pm Post subject: Changing the Tooltip |
|
|
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 |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Fri Aug 16, 2002 2:26 pm Post subject: |
|
|
| That's a good question. I could never find the answer |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 16, 2002 3:02 pm Post subject: |
|
|
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 |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Fri Aug 16, 2002 3:05 pm Post subject: |
|
|
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 |
|
 |
Que Valued Newbie

Joined: 25 Aug 2001 Posts: 38 Location: Newaygo, MICH
|
Posted: Fri Aug 16, 2002 3:12 pm Post subject: |
|
|
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
|
hardly good coding practice... I should delete this post  _________________ Que |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Fri Aug 16, 2002 4:55 pm Post subject: |
|
|
| 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 |
|
 |
|