Signature for TTabControl

I am looking for a way to implement a kind of inscription on a tab in front of a set of tabs, something like this:

enter image description here

The set of tabs should not be multi-line, it will only be horizontal and located on top. However, it must be properly scrollable if there are too many tabs.

I'm afraid that I will be limited in terms of using third-party controls, but I could use a subclass on the standard TTabControl to add the necessary changes to the standard views and behavior. (I don't need this to be TPageControl, because this is just the specific location of the tabs that interest me.)

Perhaps there is some way to implement this with a cleverly organized combination of standard controls that, despite my endevours, eluded me.

Basically, any ideas or pointers are welcome.

Oh, and an additional requirement, it should go well with desktop themes.

+6
source share
3 answers

Given some time, but I recently needed this style and found that you can do this using TMS Software TAdvOfficePager. It has the FixedTabs property, which I set in this case to 1. It also has an OnChanging event in which you can prevent access to the tab, in this case I used AllowChange: = (ToPage> 0); Finally, I disabled the first tab.

Then just create the first tab different from the rest, and you can have something like this:

enter image description here

+1
source

You tried to make the first tab a suitable inscription. With some additional logic, you can limit the selection of this tab.

I don’t know if it is possible to individually control the style of each tab so that the first one looks like this is not a tab.

0
source

Here is a tricky control mechanism that will work. I used to do this in the past. Best of all, it automatically handles tab scrolling.

Craftty arrangement

0
source

Source: https://habr.com/ru/post/885407/


All Articles