6
votes

I have this form:

enter image description here

Green arrow: Tab General, and I'd like to keep it always visible, but when the form is smaller than the tabs, TPageControl creates a navigator (the red arrow).

It's good, but I'd like to allow the user navigate but keep showing the possibility to click on the General Tab.

Example:

enter image description here

In this picture, I used the navigator and I can't see General Tab anymore. I'd like to keep it as the first tab on the PageControl, like a "fixed column" in Excel for instance.

1
I think, that such behaviour is not possible with TPageControl, unfortunately. But maybe property MultiLine helps you. When this property is enabled, the tabs are visible all at once, ordered in multiple lines.René Hoffmann
Multiline is a UI abomination. Don't do it!David Heffernan
What you plan to do won't look good. There's really. I good solution other than finding a way to avoid the navigator completelyDavid Heffernan
Why not just put a TPanel above the PageControl with a 'Home' button that navigates back to to the first page?John Easley
If you make a replacement page control then you could change all of the forms using an Interposer class. Provided you maintain compatibility.Graymatter

1 Answers

3
votes

Yes, I didn't found a way to fix the tab! But I solved my problem creating a custom page control based on our discussion on this thread.

enter image description here enter image description here enter image description here You can check it here