Int3g3r Posted August 28, 2020 Share Posted August 28, 2020 Hello, I'm new to UniGui and don't quite understand the ExtJS part of it. I simply want to switch the color of a TUnimButton. I found follow post that doesn't work for me. http://forums.unigui.com/index.php?/topic/5861-change-background-color-button-solved/&tab=comments#comment-30082 But my biggest problem is how to interpret the documentation. I found follow links to the ExtJS documentation. - extjs/4.2.1 - extjs/6.2.0 1) How can i find out wich version of ExtJS UniGui uses ? I know the basics of css, so i searched in the documentation for a method to change the style. I found follow methods: - 4.2.1 -> Ext.button.ButtonView.style() - 6.2.0 -> Ext.button.ButtonView.setStyle() Now i searched for "background". There are a lot of diffrent "theme tariables", i tried $button-default-base-color like follow. ObjectInspector -> ClientEvents -> ExtEvents -> added function added(sender, container, index, eOpts) { MainmForm.UnimButton2.style($button-default-base-color:#FFFFFF); MainmForm.UnimButton2.style($button-default-base-color: 'red'); MainmForm.UnimButton2.style(background:#FFFFFF); MainmForm.UnimButton2.style({background:#FFFFFF}); MainmForm.UnimButton2.style({$button-default-base-color:#FFFFFF}); //.. same with .setStyle() } In the post above he uses "CustomCSS" in the UniServerModule. I tried this too but that doesn't work either. 2) I know it's case sensitive but I don't know what i'm doing wrong. Regards, Int3g3r 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.