Equivalent of XCDM balloons in Livecode
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller
Equivalent of XCDM balloons in Livecode
I am moving 1991 Hypercard stack using XCDM balloons. By what you replace this function in Livecode ?
-
- VIP Livecode Opensource Backer
- Posts: 9732
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Equivalent of XCDM balloons in Livecode
Hi.
Balloons? I am an old-time HC guy, and still code today. What is the name of the XCMD?
Is it possible that the "toolTip" property in LC is what you had in mind?
Craig NEwman
Balloons? I am an old-time HC guy, and still code today. What is the name of the XCMD?
Is it possible that the "toolTip" property in LC is what you had in mind?
Craig NEwman
Re: Equivalent of XCDM balloons in Livecode
Thank a lot, the "toolTip" property is the equivalent of XCDM call « balloons » that was calling system 7 balloons.
Re: Equivalent of XCDM balloons in Livecode
My stack is multi-language, do you know utility script and/or organisation recommendation to use toolTip multi-language ?
Re: Equivalent of XCDM balloons in Livecode
Hi legallou,
So use "opencard" or whatever to "populate" your tooltips with the correct language:
...
set the tooltip of btn "the_important_button" to AnyStringHere
set the tooltip of btn "the_other_button2" to "Ce n'est pas un ballon!"
...
Best
Klaus
not sure what you want exactly, but you can set tooltips via script.legallou wrote:My stack is multi-language, do you know utility script and/or organisation recommendation to use toolTip multi-language ?
So use "opencard" or whatever to "populate" your tooltips with the correct language:
...
set the tooltip of btn "the_important_button" to AnyStringHere
set the tooltip of btn "the_other_button2" to "Ce n'est pas un ballon!"
...
Best
Klaus
Re: Equivalent of XCDM balloons in Livecode
Yes I test the command « set the toolTip ...»
set the toolTip of the target to empty -- Need to empty first
set the toolTip of the target to theText
I have done in 1995 a script that read a file with this structure and put in a personal Help field define in first line :
<Author>,card,menu1,, --------------------------------------
Click on one 'author name' of the scrolling field
to go to the 'author' window
<home>,card,menu1,, --------------------------------------------
click into the field 'home'
to
go to 'home' stack
I of course may use it again, but I was asking if in LiveCode, a standard method, script (more elegant) exist.
set the toolTip of the target to empty -- Need to empty first
set the toolTip of the target to theText
I have done in 1995 a script that read a file with this structure and put in a personal Help field define in first line :
<Author>,card,menu1,, --------------------------------------
Click on one 'author name' of the scrolling field
to go to the 'author' window
<home>,card,menu1,, --------------------------------------------
click into the field 'home'
to
go to 'home' stack
I of course may use it again, but I was asking if in LiveCode, a standard method, script (more elegant) exist.
Re: Equivalent of XCDM balloons in Livecode
Hi legallou,
Of course you can use a data structure like this to populate tooltips, too!
Best
Klaus
not sure I understand you correctly, but Livecode only provides the means, we have to supply the data in whatever form.legallou wrote:...
I of course may use it again, but I was asking if in LiveCode, a standard method, script (more elegant) exist.
Of course you can use a data structure like this to populate tooltips, too!
Best
Klaus
Re: Equivalent of XCDM balloons in Livecode
When I say « more elegant script » I was thinking not only a standard method that I missed in LiveCode documentation, but also any add-on that somebody may have developed.
-
- VIP Livecode Opensource Backer
- Posts: 9852
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Equivalent of XCDM balloons in Livecode
To add to Klaus' note, the specific strings can be stored in custom property sets, perhaps a different prop set for each language, so you can do things like:
set the tooltip of btn 1 to the uUSEng["OKbtn"] of this stack
set the tooltip of btn 1 to the uChinese["OKbtn"] of this stack
Also, FWIW, you can control the delay of the tooltips by setting the toolTipDelay global property; setting it to 0 (zero) turns them off.
set the tooltip of btn 1 to the uUSEng["OKbtn"] of this stack
set the tooltip of btn 1 to the uChinese["OKbtn"] of this stack
Also, FWIW, you can control the delay of the tooltips by setting the toolTipDelay global property; setting it to 0 (zero) turns them off.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn