mierlp Posted December 13, 2016 Posted December 13, 2016 hi, I was wondering if there's already a better and easier way to set the background color of a pagecontrol? I first time i asked was in 2014 and Mohammad had this solution :http://forums.unigui.com/index.php?/topic/4712-q-pagecontrol-background-color/ It works...but it's not the way you want to do this. Regards Peter Quote
Sherzod Posted December 14, 2016 Posted December 14, 2016 Hi, Can you try this ?!: For example: 1. UniFormCreate: procedure TMainForm.UniFormCreate(Sender: TObject); begin ... UniPageControl1.Color := clLime; end; 2. UniPageControl1 -> ClientEvents -> UniEvents -> Ext.tab.Panel [tabPanel] -> function tabPanel.beforeInit: function tabPanel.beforeInit(sender, config) { config.bodyStyle = 'background-color: transparent'; } Best regards. Quote
mierlp Posted December 14, 2016 Author Posted December 14, 2016 Thanks Option 2 works...but you have to put this code on every uniTabsheet from the UniPageControl Quote
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.