Override the default style

Questions, tips and tricks and techniques for scripting in Servoy

Override the default style

Postby scharland » Thu Aug 13, 2009 7:40 pm

Hi,

it is possible to override the «default» style?

how can we do that?

Code: Select all
//not working...
application.overrideStyle('DEFAULT',"new_style");
application.overrideStyle('',"new_style");


thanks!
scharland
 
Posts: 1
Joined: Fri May 08, 2009 3:08 pm

Re: Override the default style

Postby david » Fri Aug 14, 2009 10:20 pm

You need to assign a style sheet to a form before the application.overrideStyle() function will work. And then it will work only on the forms that have the style sheet you are over riding.

So assign a style sheet with nothing in it to all your forms and you're good to go.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Methods

Who is online

Users browsing this forum: No registered users and 40 guests