wsv01 Posted August 7, 2018 Share Posted August 7, 2018 I am trying to set up a UniPageControl with 5 tabs in it. When the page appears, all tabs need to be hidden. When the user selects a menu option, a specific tab needs to appear. So, the menu system is basically controlling which tab will appear. In the simplest sense, for example, menu option 1 will show tab 0, menu option 2 will show tab 1 and so on. Only one tab will be shown at any specific time. As soon as the user selects a specific menu choice, all visible tabs should be made invisible and the one tab related to the menu choice will become visible. I just installed the latest trial version. Working on purchasing the software if I can just make it do some of the things I desire. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 8, 2018 Share Posted August 8, 2018 Hi, Thank you for your interest in UniGUI! At leas, You can manipulate these properties: UniPageControl -> TabBarVisible UniTabSheet -> TabVisible... Quote Link to comment Share on other sites More sharing options...
wsv01 Posted August 8, 2018 Author Share Posted August 8, 2018 OK, Here is a code snip for you. On create I run this UniPageControl1.Pages[0].Visible := false; And I've tried this UniPageControl1.Pages[0].TabVisible := false; Either one seems to hide the page. On Click event of a test button I run this UniPageControl1.Pages[0].TabVisible := true; or this UniPageControl1.Pages[0].Visible := true; The tab does not appear. Does it have something to do with the page refreshing? Should I run that on the client side with some JS? If so, what would be the syntax? Quote Link to comment Share on other sites More sharing options...
wsv01 Posted August 8, 2018 Author Share Posted August 8, 2018 I finally figured it out. If I hide all the tabs on the form CREATE event, they will never appear, however, if I hide all tabs on the ACTIVATE event, everything works as planned. So, I guess setting control visibility on the form CREATE event is not a good idea. Can anyone give some reasoning behind this method of operation? Thanks... Quote Link to comment Share on other sites More sharing options...
Fernando Duarte Posted September 8, 2018 Share Posted September 8, 2018 I'm having the same problem, the first time I open the screen it works normally, from the second tab change, it does not change. but I use a frame, and it has no ACTIVATE event, any idea how to solve it? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2018 Share Posted September 8, 2018 Hi, Can you please specify which edition are you using and explain in more detail what problem do you have? If it is not difficult for you make a simple testcase Quote Link to comment Share on other sites More sharing options...
Fernando Duarte Posted September 8, 2018 Share Posted September 8, 2018 I tried to provoke again, but I could not. I will continue and if it happens again, post here. Sorry for the inconvenience. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2018 Share Posted September 8, 2018 Ok np, Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.