RevProfile of segment widget

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1108
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

RevProfile of segment widget

Post 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?
Trevix
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10427
Joined: Fri Feb 19, 2010 10:17 am

Re: RevProfile of segment widget

Post 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.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: RevProfile of segment widget

Post 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!
trevix
Posts: 1108
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: RevProfile of segment widget

Post by trevix »

So, the answer is that changing a profile of a segment widget cannot change its itemNames. Correct?
Trevix
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
bwmilby
Posts: 463
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: RevProfile of segment widget

Post 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.
Post Reply