Segmented Control Widget
Terence Heaford
theaford at btinternet.com
Fri Nov 6 11:15:07 EST 2020
I can see the advantages of doing it yourself and intend trying both methods as suggested by yourself and Jaqueline.
I have noted when trying some of the widgets that they do seem to be rather incomplete.
All the best
Terry
> On 5 Nov 2020, at 22:43, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> The segmented control is fairly limited. Most of the widgets are. The properties you see are the properties you get. I did however, with a bit of clever scripting, develop a tabbed object group that works as well or better that the built in tabbed button. And for a bonus, it looks in Windows the same as it loos on the Mac. Really, the Windows UI is really horrible for LC. I just gotta say. It puts the Ugh in Ughly.
>
> Bob S
>
>
>> On Nov 5, 2020, at 12:10 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:
>>> I have been messing about with the Segmented Control Widget and have been trying to apply a tooltip.
>>> I noted that the tooltip can only be applied to the whole control, it does not appear possible to have a tooltip for each segment.
>>> Is this possible and if so could someone please advise.
>>
>> I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget.
>>
>> If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond or so, and then set it to the new string.
>>
>> --
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list