Page 1 of 1

RevProfile of segment widget

Posted: Tue Oct 27, 2020 11:30 pm
by trevix
Apparently i cannot change the itemLabels (or itemNames for that matter) of a segmented widget using a revprovile.
Everything is set in the cREVgeneral of the widget:
profileList:
Master
inglese

I created a cREVDivergedinglese property in the widget but nothing changes when I use

Code: Select all

set the revprofile of widget "SegmentedSingleDouble" to "inglese"
Note that other field labels or buttons are changing correctly.

What am I missing?

Re: RevProfile of segment widget

Posted: Wed Oct 28, 2020 11:07 am
by richmond62
You can call a revProfile whatever you want . . .

BUT . . . a revProfile is a set of properties used as a way of changing multiple properties of an
object without having to repeatedly change each individual property, so if, for the sake of
argument, if your revProfile inglese does not actually redefine any properties of the object to which it is addressed, there will be no sign that it has been applied.

However, remember a widget is a totally different "beast" to standard LiveCode objects, and their properties are not,
generally, addressable in the same way.

Re: RevProfile of segment widget

Posted: Wed Oct 28, 2020 3:04 pm
by Klaus
BUT . . . a revProfile is a set of properties used as a way of changing multiple properties of an
object without having to repeatedly change each individual property, so if, for the sake of
argument, if your revProfile inglese does not actually redefine any properties of the object to which it is addressed, there will be no sign that it has been applied.
Exactly, and therefore I consider this a bug!

Re: RevProfile of segment widget

Posted: Thu Oct 29, 2020 12:30 am
by trevix
So, the answer is that changing a profile of a segment widget cannot change its itemNames. Correct?

Re: RevProfile of segment widget

Posted: Thu Oct 29, 2020 4:23 am
by bwmilby
I will need to look at the code, but I will say that it does seem like an update will be needed for profiles to properly support widgets.