Re: making a tooltip (for Japanese)
Hi Nicolas, go stack url http://www.kenjikojima.com/runrev/handbook/download/jpTooltip.rev -- Kenji Kojima http://www.kenjikojima.com/ On Oct 23, 2008, at 12:04 AM, Nicolas Cueto wrote: Hello List, I'd like to add a tooltip with Japanese text to objects, and am looking for suggestions on how to script it. My thought is to add a script to an object which uses both mousemove to show a field (i.e.,the tooltip) and send to trigger a hide field after a few seconds. The trigger (which is the card) will also need to put off hiding the field so long as the mouseloc has changed. The challenge for me is how to measure whether the mouse has moved or not. All I can figure out is to add a send command to the trigger-script in the card which'll compare mouselocs both before and after the second send command. But, maybe there's a simpler way of doing this? Thanks. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Hi Kenji, Thank you! One question: how to set the text contained in the cJpToolTip customprop of an object? I tried directly, cut and paste, and set cJpTooltip to unicode/uniencode(field text,(Japanese)), but no luck. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Hi NicoNico-san, Did you try set the cJpTooltip of btn shikaku to unidecode(四角いボタン, utf8) from message box? Best regards, -- Kenji Kojima http://www.kenjikojima.com/ On Oct 24, 2008, at 7:04 PM, Nicolas Cueto wrote: Hi Kenji, Thank you! One question: how to set the text contained in the cJpToolTip customprop of an object? I tried directly, cut and paste, and set cJpTooltip to unicode/uniencode(field text,(Japanese)), but no luck. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
On Oct 24, 2008, at 5:04 PM, Nicolas Cueto wrote: Hi Kenji, Thank you! One question: how to set the text contained in the cJpToolTip customprop of an object? I tried directly, cut and paste, and set cJpTooltip to unicode/uniencode(field text,(Japanese)), but no luck. Nicolas, If you want to grab unicode text from a field use: set the cJptoolTip of btn whatever to unidecode(the unicodeText of fld mytext,utf8) Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Thanks Kenji and Devin. That worked somewhat, but not if the custom prop contains more than one line, in which case only the first line is visible in the tooltip field. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Hi Nicolas, Use a text field when you set the custom property that Devin wrote. set the cJptoolTip of btn whatever to unidecode(the unicodeText of fld mytext,utf8) and change the script to on setJpTooltip put the seconds into lEnterSec set the unicodeText of fld jpTooltip to uniencode(the cJpTooltip of the target, utf8) -- Adjust +2 to any number. set the width of fld jpTooltip to the formattedWidth of fld jpTooltip + 2 -- these two lines were added. Adjust -4 to any number. set the height of fld jpTooltip to the formattedHeight of fld jpTooltip -4 set the align of fld jpTooltip to left jpTooltipShow end setJpTooltip -- Kenji Kojima http://www.kenjikojima.com/ On Oct 24, 2008, at 11:07 PM, Nicolas Cueto wrote: Thanks Kenji and Devin. That worked somewhat, but not if the custom prop contains more than one line, in which case only the first line is visible in the tooltip field. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
-- these two lines were added. Adjust -4 to any number. set the height Oops. Here's me thinking I had to do some unicode stuff with end-of-line chars. Never thought it was just a height issue. Thanks again, Kenji. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Nicolas, Go to the Rev Online User space mcgrath3 and look at my sample tooltips stack ToolTip Tricks. It shows many ways to play with tooltips that might help. Tom McGrath III On Oct 23, 2008, at 12:04 AM, Nicolas Cueto wrote: Hello List, I'd like to add a tooltip with Japanese text to objects, and am looking for suggestions on how to script it. My thought is to add a script to an object which uses both mousemove to show a field (i.e.,the tooltip) and send to trigger a hide field after a few seconds. The trigger (which is the card) will also need to put off hiding the field so long as the mouseloc has changed. The challenge for me is how to measure whether the mouse has moved or not. All I can figure out is to add a send command to the trigger-script in the card which'll compare mouselocs both before and after the second send command. But, maybe there's a simpler way of doing this? Thanks. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Hi Tom, If I click the Run button on the Walkthrough pane of your stack and immediately thereafter click on the Changing Tooltips tab, I get an execution error. I think that Nicolas' problem is that Rev tooltips can't display unicode. He is probably trying to make his own tooltips and therefore needs to check the mouseControl in a mouseMove handler and is also likely to run into focus problems. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum: http://runrev.info/rrforum/ Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info. On 23 okt 2008, at 15:03, Thomas McGrath III wrote: Nicolas, Go to the Rev Online User space mcgrath3 and look at my sample tooltips stack ToolTip Tricks. It shows many ways to play with tooltips that might help. Tom McGrath III On Oct 23, 2008, at ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Mark, I just noticed that error as well. It was not there before. The second pane Walkthroughs is the one that I thought might apply to Nicolas. I thought the Unicode issue in tooltips was fixed??? Regards, Tom McGrath On Oct 23, 2008, at 9:14 AM, Mark Schonewille wrote: Hi Tom, If I click the Run button on the Walkthrough pane of your stack and immediately thereafter click on the Changing Tooltips tab, I get an execution error. I think that Nicolas' problem is that Rev tooltips can't display unicode. He is probably trying to make his own tooltips and therefore needs to check the mouseControl in a mouseMove handler and is also likely to run into focus problems. -- Best regards, Mark Schonewille ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: making a tooltip (for Japanese)
Nicolas, You might want to look at mouseLeave as well to see if the mouse left the object. Tom McGrath On Oct 23, 2008, at 12:04 AM, Nicolas Cueto wrote: The challenge for me is how to measure whether the mouse has moved or not. All I can figure out is to add a send command to the trigger-script in the card which'll compare mouselocs both before and after the second send command. But, maybe there's a simpler way of doing this? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution