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
-
trevix
- Posts: 1077
- Joined: Sat Feb 24, 2007 11:25 pm
-
Contact:
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.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
-
richmond62
- Livecode Opensource Backer

- Posts: 10096
- Joined: Fri Feb 19, 2010 10:17 am
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: 14191
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
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: 1077
- Joined: Sat Feb 24, 2007 11:25 pm
-
Contact:
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.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
-
bwmilby
- Posts: 462
- Joined: Wed Jun 07, 2017 5:37 am
-
Contact:
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.