ravedadave Posted April 23, 2020 Share Posted April 23, 2020 Hi, Just took the plundge and purchased Unigui, great product well done. I have the following scenario as shown in the picture below. on my Mainform I have a PageControl where a frame is loaded for a specific function of my program. This loads a frame with another Page control and a set of tabsheets. The contents of the second pagecontrol / tabsheet1 is data fields that the user can modify so when they click the "Edit" button the dataset goes into "Edit" mode. What I am trying to avoid is the user closing the MainForm Tab Vehicle (FL20 CVT) whilst the dataset is in edit mode on the other frame. how can I pass something back to the main form to stop the tab from being closed ? Thank You. Dave Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted April 23, 2020 Share Posted April 23, 2020 Hi, You can set UniTabSheet1.Closable:=False while editing. This will remove "X" button Quote Link to comment Share on other sites More sharing options...
ravedadave Posted April 23, 2020 Author Share Posted April 23, 2020 1 hour ago, Hayri ASLAN said: Hi, You can set UniTabSheet1.Closable:=False while editing. This will remove "X" button Hi Thanks for the replay. I need to keep the X button on the tab as they will end up gathering a lot of tabs. is there any way to pass back ? Thanks. 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.