There are some examples of how to do it?
Probably can be styled button and use Widget Switcher…there are some examples ?
and I found SDockTab and SDockableTab, what is it? how it use ?
UPD:
My buggy solution here:
There are some examples of how to do it?
Probably can be styled button and use Widget Switcher…there are some examples ?
and I found SDockTab and SDockableTab, what is it? how it use ?
UPD:
My buggy solution here:
Styled button (or better yet, SCheckBox
) and SWidgetSwitcher
is how I would do it.
The screenshot you have above shows the system we call the TabManager
. It is responsible for:
The feature matrix causes the system to get quite complicated. It is also designed with a very specific use-case in mind. I would avoid using it unless it is a near-perfect fit for your purposes. You can experience most of the features by customizing your editor layout and decide if you want to dig into all that code.
However, if simple tabs is what you are looking for, I suggest approach that you proposed:
CreateRadioButton
example in WidgetGallery.cpp
enum
or an int
that signifies the current tab; let’s call it tabIndex
.SWidgetSwitcher
to the current tabIndex
via an attribute.The nice thing about this approach is that you have complete freedom to move radio buttons around. You can create a special tab that’s bigger than others and has a different image to represent it.
Let me know how it goes and if you have further questions.
Where I can find a WidgetGallery ? it is not in the source code
You should be able to find it under:
...\UE4\Engine\Source\Runtime\AppFramework\Private\Framework\Testing\SWidgetGallery.cpp