Jump to content

Pagecontrol background color


mierlp

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...