CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGJQMThemeSwitcher doesn't change the theme

General discussion

by ali » 18 Jul 2016 20:00

I have a IWForm with 2 IWCGJQMButtons and a IWCGJQMThemeSwitcher.
The switcher doesn't change the theme.
What can be wrong?

Here's the dfm code:

Code: Select all
object IWForm1: TIWForm1
  Left = 0
  Top = 0
  Width = 555
  Height = 400
  RenderInvisibleControls = False
  AllowPageAccess = True
  ConnectionMode = cmAny
  Background.Fixed = False
  HandleTabs = False
  LeftToRight = True
  LockUntilLoaded = True
  LockOnSubmit = True
  ShowHint = True
  XPTheme = True
  DesignLeft = 8
  DesignTop = 8
  object IWCGJQMRegPage: TIWCGJQMRegion
    Left = 0
    Top = 0
    Width = 555
    Height = 400
    TabOrder = 0
    Version = '1.0'
    Align = alClient
    RegionType = jqmrtPage
    ExplicitLeft = 192
    ExplicitTop = 144
    ExplicitWidth = 100
    ExplicitHeight = 100
    object IWCGJQMRegHeader: TIWCGJQMRegion
      Left = 0
      Top = 0
      Width = 555
      Height = 89
      TabOrder = 0
      Version = '1.0'
      Align = alTop
    end
    object IWCGJQMRegion1: TIWCGJQMRegion
      Left = 0
      Top = 89
      Width = 555
      Height = 311
      TabOrder = 1
      Version = '1.0'
      Align = alClient
      RegionType = jqmrtContent
      RegionOptions.FullHeight = True
      ExplicitLeft = 152
      ExplicitTop = 224
      ExplicitWidth = 100
      ExplicitHeight = 100
      object IWCGJQMButton1: TIWCGJQMButton
        Left = 0
        Top = 0
        Width = 555
        Height = 58
        TabOrder = 0
        Version = '1.0'
        JQMButtonOptions.Label_ = 'BOTON 1'
        ExplicitLeft = 64
        ExplicitTop = 56
        ExplicitWidth = 60
      end
      object IWCGJQMButton2: TIWCGJQMButton
        Left = 0
        Top = 58
        Width = 555
        Height = 58
        TabOrder = 1
        Version = '1.0'
        JQMButtonOptions.Label_ = 'BOTON 2'
        ExplicitLeft = 80
        ExplicitTop = 160
        ExplicitWidth = 60
      end
      object IWCGJQMThemeSwitcher1: TIWCGJQMThemeSwitcher
        Left = 0
        Top = 116
        Width = 555
        Height = 60
        TabOrder = 2
        Version = '1.0'
        JQMThemeSwitcherOptions.Themes.Strings = (
          'aloe'
          'candy'
          'melon'
          'mint'
          'royal'
          'sand'
          'slate'
          'water')
        JQMThemeSwitcherOptions.ThemesPath = 'css/ui-themes/'
        ExplicitLeft = 112
        ExplicitTop = 168
        ExplicitWidth = 60
      end
    end
  end
end
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Jorge Sousa » 19 Jul 2016 10:23

Hello

What cgdevtools version are you using?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ali » 19 Jul 2016 15:15

Hi Jorge,

CGDevtools Version 2.9.0.284

Delphi XE2
IW 12.2.34
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Alexander Bulei » 19 Jul 2016 16:04

Hi ali,

What can be wrong?


We are not wizards to tell you what is wrong by design code :/
Maybe you don't have wwwroot updated?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ali » 19 Jul 2016 16:17

Hi Alex,
I´ve posted dfm code because i'm testing and did write nothing in the pas file. You don't need to be a wizard :)
I've just droped the components you see in the dfm.
The output folder i'm using is the demo-bin folder.
I'll reinstall all to be sure the wwroot is ok.
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Alexander Bulei » 19 Jul 2016 16:19

Hi,

You don't need reinstall...just select the project and go to the CGDevTools menu -> Selected Project -> Sync wwwroot.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Jorge Sousa » 19 Jul 2016 17:09

Hello Ali

CGDevtools Version 2.9.0.284

Delphi XE2
IW 12.2.34


What do you mean by the theme doesn't change? When the browser user changes it?

Try to hit ctrl+f5 in the browser to clear its cache, in case you forgot to update the wwwroot before you ran the project for the current version.

If this doesn't work, please submit a demo. t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ali » 19 Jul 2016 18:33

Thank you,

I've reinstalled all to be sure the demo-bin\wwwroot is ok.
It still doesn't change the theme when the browser user selects it.
If i press ctrl+F5, the problem persists.

Here is the test app running:

http://tinyurl.com/j5ttd6e
You do not have the required permissions to view the files attached to this post.
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by ali » 19 Jul 2016 18:40

And another problem i have is that on Android, the app size is not correct. It looks ok the first time, and then it looks very very small. I've posted this problem on another thread but didn't find a solution. With IOS the size is allways ok.
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Jorge Sousa » 20 Jul 2016 16:18

Hello

In the demo link you posted http://tinyurl.com/j5ttd6e

the version is 2.8.0.181

not

CGDevtools Version 2.9.0.284


Thats why I asked for the version, because we changed / fixed that behaviour since version 2.9.0.284

About your last post, please send another test case. t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Next

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.