Jump to content

Recommended Posts

Posted

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
  • 2 weeks later...
  • 4 months later...
Posted

Hello, 

i'm trying to set font color in red with this code 

UniSession.AddJS(tsDce.JSName + '.tab.btnInnerEl.setStyle(''font-color'', ''#FF0000'')')

but it don't work .where can i find list of style property

Posted

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

Posted

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.

  • Administrators
Posted

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.

  • Administrators
Posted

If you are evaluating uniGUI then why do you need dealing with such extreme details such as making TabSheet caption bold?

 

I recommend focusing on core functionality of the framework during your evaluation period.

  • 2 months later...
Posted

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

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