Adding extra properties to objects

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Adding extra properties to objects

Post by SparkOut » Wed May 14, 2014 10:21 am

I think where Richmond wanted to add properties he was talking about built-in properties that are available to some objects but not others.

You could not, for example "set the htmltext of the label of button 1 to the htmltext of field 1" - and a virtual property would not help with that, I don't think. So working on the engine code would be required to add this property to the button label.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Adding extra properties to objects

Post by jacque » Wed May 14, 2014 4:13 pm

SparkOut wrote: You could not, for example "set the htmltext of the label of button 1 to the htmltext of field 1" - and a virtual property would not help with that, I don't think. So working on the engine code would be required to add this property to the button label.
That's what I meant, you said it better than I did.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Adding extra properties to objects

Post by FourthWorld » Wed May 14, 2014 4:32 pm

When you need a new type of control that mixes the best of existing control types that sounds like a good case for a custom control.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply