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: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

RevProfile of segment widget

Post by trevix » Tue Oct 27, 2020 11:30 pm

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 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: RevProfile of segment widget

Post by richmond62 » Wed Oct 28, 2020 11:07 am

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: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: RevProfile of segment widget

Post by Klaus » Wed Oct 28, 2020 3:04 pm

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: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: RevProfile of segment widget

Post by trevix » Thu Oct 29, 2020 12:30 am

So, the answer is that changing a profile of a segment widget cannot change its itemNames. Correct?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: RevProfile of segment widget

Post by bwmilby » Thu Oct 29, 2020 4:23 am

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.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”