Jump to content

TUniTabSheet Caption Bold / not bold


dunham

Recommended Posts

Hi,

 

For now try:

 

UniTabSheet1.ClientEvents ...

function afterrender(sender, eOpts)
{
  sender.tab.btnInnerEl.setStyle('font-weight', 'normal')
}

and in runtime (not in MainForm.onCreate)

// normal
UniSession.AddJS(UniTabSheet1.JSName + '.tab.btnInnerEl.setStyle(''font-weight'', ''normal'')');

// bold
UniSession.AddJS(UniTabSheet1.JSName + '.tab.btnInnerEl.setStyle(''font-weight'', ''bold'')');

Best regards.

  • Upvote 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

Hi,

 

What do you mean about "in runtime (not in MainForm.onCreate)"

 

Well, I mean, run the code, that is a state of the program when it is already running..

 

I want to set UniTabSheet active page title font to bold and Red and the other pages remains normal

 

I think in this case more suitable to use a custom CSS

 

Best regards.

Link to comment
Share on other sites

  • Administrators

yes Farshad

Thank you.

 

We already have limited resources to provide support, so our primary focus is to support our licensed users.

 

The amount support that we can provide to trial edition users is limited to installation issues. Of course we are happy to evaluate critical bugs reported by all developers including trial edition users.

Link to comment
Share on other sites

  • 2 months later...

Hi folks,

 

I tryed following:

    ts := TUniTabSheet.Create(Self);
    ts.Name := 'tab';
    ts.OnClose := TabSheetClose;
    with ts do
    begin
      Closable := True;
      PageControl := pgeMain;
      Caption := 'Test';
      ParentFont := false;
      Font.Name := 'Open Sans';
      Font.Height := -12;
    end;

It sheems that the Font properties has no influence of the look of the tab caption. Maybe a propertie "TabFont" would be nice...?

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...