CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

About Theming

by oflor » 23 Dec 2014 14:55

Hi Everybody:

There is a way to apply a theme without need to paste a IWCGJQThemeSwitcher on the MainForm?

By programatically o something else?

I paste the IWCGJQThemeSwitcher component then I hide it on FormCreate event but the theme is not loaded.

Thanks to all!
Best Regards,...
Oscar Flor
Sebaot Software
oflor
 
Posts: 8
Joined: 24 Jun 2014 23:45

by Jorge Sousa » 23 Dec 2014 18:10

Hello

If you're going to use ThemeSwitcher.Viisible=False, its Parent must have RenderInvisibleControls=True

But normally themeswitcher its used so that the user can change the theme.

As mentioned here

http://www.cgdevtools.com/cgforum/viewtopic.php?f=118&t=1366

You can use IWForm.Stylesheet, ServerController.SyleSheet to load the theme

or IWForm.ContentFiles or IWForm.PageContext.AddLinkFile as well
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by oflor » 23 Dec 2014 21:10

Thank You very much for the post!
Best Regards,...
Oscar Flor
Sebaot Software
oflor
 
Posts: 8
Joined: 24 Jun 2014 23:45


Return to General

cron

Who is online

Users browsing this forum: No registered users and 75 guests

Contact Us.