I would like to use the application.overrideStyle('current','new') feature in servoy 4.1.4 community edition on OSX 10.6 (smart & web client) to allow the user to dynamically change the style of the entire solution at runtime using styles contained in the resource. I created a test application with one form. If I change the style property on the form from default to one of the styles prior to running the application, the style is properly loaded and works fine in either smart or webclient. When I try to change the style programmatically using the onShow() event of the form and application.overrideStyle('current','new') nothing happens in either smart or web client. I can not figure out what I am doing wrong.
Can anyone help here? I looked at the servoy styles example and it creates a new form for each style. In a complex application, this would be a nightmare. The application.overrideStyle() function seams like it would be the elegant solution (if it can be made to work). I've searched the web for examples and comments on other posts but really have not found anything. I also wonder why servoy did not include use of the function in it's styles demo application.