Style problem

Hi,
I have functionality that user can select a style class for the current page or solution from a combo,
What I am doing is , I use a default style for that form and when user select a style class I fired method where I do

application.overrideStyle(‘myStyle’,‘selectedStyle’)

But no effect at all.But if I go to designer then the style class effected slidely like label of button or background of textfield. :x

I think overrideStyle is something that has to be done very early at solution startup. You cannot “toggle” styles all the time on the fly…

Hi Patrick,
Again no luck. :roll:

I call a global method during solution startup but it reflects to the form slidely not full class.

I don’t understand why this feature is on application level.
It should be at elements level (elements.setStyle(‘x’) and at controller level ( controller.replaceStyle(‘cmb.x’, ‘cmb.y’) and obviously run dynamically.

I didn’t see the webinar on the 4.0 release but I really hope this feuture will be powered

Hi axterics,

application.overrideStyle() overrides not just the style on a specific element. It overrides the stylesheet.
So you can define a stylesheet for Mac/Linux/Windows/Web/ColorBlind/CEO ;) and switch accordingly when you load the solution.

Hope this explains it better.

Hi Robert,
You are absolutely correct.:D

ROCLASI:
So you can define a stylesheet for Mac/Linux/Windows/Web/ColorBlind/CEO ;) and switch accordingly when you load the solution.