CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Set theme while using templates?

by cpstevenc » 19 Aug 2019 15:06

I am dumb and can't figure this out.... seems demos all use TIWCGJQThemeSwitcher

anyways...

Using 10.3.2 Delphi.
Intraweb 15.1.3
CGDevTools 4.1.0.212

I have a new IW program I am trying to start up dev work on, and it uses templates.

I set my design time theme to whatever. Haven't settled on an exact one yet.

But as the name says, design time theme is applied.. but not run time?

I can't for the life of me find in the documentation or any example that shows how to set run time themes on the controls CGD controls.

If I drop a TIWCGJQThemeSwitcher on the form, and add it to the template to show it, that appears to work when

I select a theme from it, it updates CGD controls of the form in the browser,.

But really I don't want a TIWCGJQThemeSwitcher at all. I want one theme in my program.

So assume there is a way to set theme on individual buttons, and/or the entire form itself.

If anyone can point me in the right direction, that would be great!
cpstevenc
 
Posts: 9
Joined: 05 Dec 2018 05:24

by EitanArbel » 19 Aug 2019 21:08

Hi Steven
if i understand you correctly, add this line in the ServerController :
You do not have the required permissions to view the files attached to this post.
EitanArbel
 
Posts: 115
Joined: 16 Jul 2013 22:27

by cpstevenc » 21 Aug 2019 02:16

Thanks!

Gave me ideas....

Problem I ran into was my program has its own CSS file for certain things.

I was able to on the form, add to extraheaders

<link rel="stylesheet" type="text/css" href="ui-themes\delta\jquery-ui.css">

and this put in the CSS of the delta theme... and now the jquery objects have the theme I wanted.

Now if there was a form I wanted a different theme to fit the bill, i can specify the CSS file to use.

So far so good it looks now :)
cpstevenc
 
Posts: 9
Joined: 05 Dec 2018 05:24


Return to General

cron

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.