… but not a sheet/tab control.
we have a large number of controls, mostly in groups, on an existing tab control that are hidden/unhidden depending on what the user selects.
Maintenance of these controls is a PITA and it’s really fugly from a dev view (snippet for an idea).
I don’t want to put a sheet on a sheet as I can’t get the tabs to hide or dissapear sufficiently to make it look neat, the tab and shadows always show.
Does anyone have any suggestions that may point me in a direction - I’d like to separate the controls onto ‘pages’ like tabs, and hide the unnecessary pages. This will make maintenance and coding much easier.
Andrew
At Design time its nice to have Tabs to make it easy to flip between so I usually put Tabs BELOW:
At runtime set ?Sheet{PROP:Wizard}=True to hide the Tabs as shown below. You can pick WIZARD in the Designer Props to help fit it as you desire, but I would always set it at runtime as it is so easy to leave the Tabs showing.
Use Select(?TabXxxx) to display it, or Hide all but the 1 tab you want to see.
Select NoSheet or ?Sheet{PROP:NoSheet}=True to remove the 3D Border:
You can play with everything Sheet and Tabs using my tool:
Another way is to design all your Groups Off Window. Then move them into place at runtime and resize the Window to hide the extra space.
I do this in the below window. One of the Yellow groups on the far right is moved into Spot 1. The Green Group is for Sheets and is moved over Edges Group.
While I prefer SETPOSITION() as less code than PROP:AT’s in my testing only PROP:AT’s worked with PROP:DerferMove active so are a better way. In this case the Group is HIDE so not an issue.
Thanks very much Carl. I hadn’t considered using the Wizard property (haven’t had the need to use it at all).
I’m still migrating to C11 (I’ve done it once, 95+% success) and am preparing to do so again very soon, at which time I’ll take a look at the tools.
(My) overnight, I thought I might redesign the form. It’s been like that for over 15 or 20 years, a refresh might be in order - along with a bunch of other windows and forms that are a bit stale.