I can manually copy and paste the contents of the string into the Servoy's style editor but I am looking to automate the process.
- Code: Select all
var s = solutionModel.newStyle("style2", styleStr);
The other applications read the name of the style from a database and use the application.overrideStyle('mystyle', 'mystyle_mace') to use the named style instead of the default style. Also is there anyway to get a list of existing
styles. Right now I test for uniqueness by asking the user for a new sytle name and trying to remove that style. If a "false" is returned, the new style name does not exist. A function such as getStyleNames() would be useful.
Having the new style appear in the Solution Explorer means that I do not have to recreate the new style or styles each time a different application is run. Is this possible in 7.1, 7.2 or 7.3?