I was going to file an enhancement request with this, but since we're going to be the ones to do it, anyway, I'm going to put it over here. I want to be able to set defaults for certain controls heirarchically that will be applied when controls are added (or, I suppose, give me the chance to apply the changes more widely).
0) Create sets of defaults (themes/skins) that I can save, and call up when I want to
1) Customize defaults for all new objects (say font size)
2) for all in a class of objects (buttons)
3) Theme/skin a particular stack
4) Theme/skin class of objets in the stack
Heirarchically skin/theme
Moderator: Klaus
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Heirarchically skin/theme
FWIW I have a similar need for a project I'm working on, and although what I need isn't hierarchical it does provide a convenient means of using a stack of template objects to govern appearance and other properties of "subscribed" objects. I outlined this with the central handler that does the object updating on the mailing list last week:
http://lists.runrev.com/pipermail/use-l ... 34432.html
http://lists.runrev.com/pipermail/use-l ... 34432.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Heirarchically skin/theme
I don't have all the features you listed, but I needed to do something similar in one of my current projects, in this case a button "theme". I created a button that had all the properties I needed, then set a custom property to the properties of the button. The original button was deleted. Whenever I needed to reproduce the button, I just scripted the creation of a new one and set its properties to the stored custom prop.
This could be expanded for all types of controls, and instead of setting each object's properties independently, just set the templateButton/field/etc to the stored property. I think the implementation wouldn't be hard at all, but the UI would need work. There would have to be a way to design the theme initially.
LC 8 has a "theme" property that can be set. Right now it has only "legacy" and the default, but I imagine there would be a way to hook into that feature. If so, then the user would only need to "set the theme of this stack to xxx" and it would be done.
This could be expanded for all types of controls, and instead of setting each object's properties independently, just set the templateButton/field/etc to the stored property. I think the implementation wouldn't be hard at all, but the UI would need work. There would have to be a way to design the theme initially.
LC 8 has a "theme" property that can be set. Right now it has only "legacy" and the default, but I imagine there would be a way to hook into that feature. If so, then the user would only need to "set the theme of this stack to xxx" and it would be done.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com