Frederick Posted July 11, 2019 Share Posted July 11, 2019 Is there a way to change the TUniGroupBox's caption's style and size? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 11, 2019 Share Posted July 11, 2019 9 hours ago, Frederick said: Is there a way to change the TUniGroupBox's caption's style and size? Hello, One possible solution 1. UniServerModule.CustomCSS: .myGroupBox .x-fieldset-header-text { font-family: "Times New Roman", Times, serif; font-size: 14px; font-style: italic; font-weight: bold; color: green; } 2. UniGroupBox.LayoutConfig.Cls = myGroupBox Quote Link to comment Share on other sites More sharing options...
Frederick Posted July 11, 2019 Author Share Posted July 11, 2019 10 hours ago, Sherzod said: Hello, One possible solution 1. UniServerModule.CustomCSS: .myGroupBox .x-fieldset-header-text { font-family: "Times New Roman", Times, serif; font-size: 14px; font-style: italic; font-weight: bold; color: green; } 2. UniGroupBox.LayoutConfig.Cls = myGroupBox Unfortunately, this does not do anything to change the group box's caption's attributes. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 12, 2019 Share Posted July 12, 2019 2 hours ago, Frederick said: Unfortunately, this does not do anything to change the group box's caption's attributes. Please make a simple testcase for reproduce. Quote Link to comment Share on other sites More sharing options...
Frederick Posted July 12, 2019 Author Share Posted July 12, 2019 While making a test case for this post, I remembered that JS is case sensitive. When I changed the Cls property value of the group box from "myGroupbox" to "myGroupBox", the caption font size and style change took effect. However, the child group box (Prices) also took the Cls value from the parent group box when no Cls value was specified for it. How do I disable it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.