Jump to content

How to hide UnimTabSheet correctly? [ Solved ]


Fábio Matte

Recommended Posts

1 hour ago, Fábio Matte said:

I'm trying to hide the TabSheet by checking the TabVisible Option for False and the TabVisibleBar for False, both in Runtime and in designe and it is not working.

I’m still viewing the Tabs.

How should I proceed ?

Note: UniGUI MOBILE

Hello,

Try this approach for now:

 

Link to comment
Share on other sites

21 hours ago, Sherzod said:

Hello,

Try this approach for now:

 

Thanks, I wasn’t sure which term to use to search the forum.

Problem solved, thanks.

 

procedure TMainmForm.UnimFormReady(Sender: TObject);
begin
  with UnimTabPanel1 do
    if not TabBarVisible then
      JSInterface.JSCall('getTabBar().setVisibility', [TabBarVisible]);

end;
Link to comment
Share on other sites

  • Fábio Matte changed the title to How to hide UnimTabSheet correctly? [ Solved ]
  • 10 months later...
On 1/28/2021 at 4:59 AM, Fábio Matte said:

Thanks, I wasn’t sure which term to use to search the forum.

Problem solved, thanks.

 

procedure TMainmForm.UnimFormReady(Sender: TObject);
begin
  with UnimTabPanel1 do
    if not TabBarVisible then
      JSInterface.JSCall('getTabBar().setVisibility', [TabBarVisible]);

end;

How to translate this delphi code into cbuilder code?

 JSInterface.JSCall('getTabBar().setVisibility', [TabBarVisible]);

void __fastcall TMainmForm::UnimFormReady(TObject *Sender)
{
if( !UnimTabPanel1->TabBarVisible)
    {
    UnimTabPanel1->JSInterface->JSCall("getTabBar().setVisibility", ????????);
    }
}

Link to comment
Share on other sites

On 12/9/2021 at 4:04 AM, 55143681 said:

How to translate this delphi code into cbuilder code?

 JSInterface.JSCall('getTabBar().setVisibility', [TabBarVisible]);

void __fastcall TMainmForm::UnimFormReady(TObject *Sender)
{
if( !UnimTabPanel1->TabBarVisible)
    {
    UnimTabPanel1->JSInterface->JSCall("getTabBar().setVisibility", ????????);
    }
}

Hi,

TabBarVisible is a property of tabsheet and value can be True or False.

Link to comment
Share on other sites

×
×
  • Create New...