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 Dear DelphiDeveloper!

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

Please explain more...

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

Regards

Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...