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 > <firstname.lastname@example.org> 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 | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > email@example.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 firstname.lastname@example.org Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode