Fábio Matte Posted January 27, 2021 Share Posted January 27, 2021 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 27, 2021 Share Posted January 27, 2021 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 More sharing options...
Fábio Matte Posted January 27, 2021 Author Share Posted January 27, 2021 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 More sharing options...
55143681 Posted December 9, 2021 Share Posted December 9, 2021 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 More sharing options...
Hayri ASLAN Posted December 10, 2021 Share Posted December 10, 2021 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 More sharing options...
Recommended Posts