When you detach the commandLine from the toolbar, and dock it underneath 
the outliner (as an example), it displays with a tab like default 
WorkspaceControl behavior. So that's consistent with what I'm getting.
The difference is, as you mention, the lack of tabs when docket to a 
toolbar specifically.
It also provides the dotted left-edge, which allows you to grab and detach 
the toolbar to be docket elsewhere. These do not show when docked outside a 
toolbar.

I played around with the workspaceControl attributes, but nothing made any 
change to this behavior.
So I assume these toolbars are built in a different way, other than being 
wrapped in a workspaceController.

I will investigate the QDockWidget! Thank you, Marcus :)



On Sunday, 15 July 2018 18:52:50 UTC+2, Marcus Ottosson wrote:
>
> In what way does it behave differently at the moment? It looks like it 
> docks successfully, and that the question is about how to detect when it is 
> horizontally docked such that you can automatically hide your inner tabs? 
> Also docking changed somewhat in Maya 2017, which version is this question 
> regarding?
>
> In all versions of Maya, a dock uses the QDockWidget 
> <http://doc.qt.io/qt-5/qdockwidget.html#allowedAreas-prop> under the 
> hood, maybe that has got some clues for you.
>
> Other than that, if you are able to dock it and simply wish to discard the 
> tabs when the widget it below a certain height, maybe you could add a 
> resizeEvent and from there determine whether it is below that height and 
> show/hide the tabs accordingly.
> ​
>
> On 15 July 2018 at 17:43, Kim Strandli <kimst...@gmail.com <javascript:>> 
> wrote:
>
>> Hey, all!
>>
>> Is there a special trick to creating a custom dockable toolbar that 
>> behaves the same way as the StatusLine, CommandLine and those top/bottom 
>> toolbars?
>> It docks perfectly fine everywhere else, using either Qt or the MayaMixin 
>> method, but I wish to not have the tab visible when docked as a toolbar.
>>
>> It's a small utility, which is why I'd prefer docking it next to an 
>> existing toolbar, rather than the whole bottom of the UI using DockControl
>>
>> Any ideas?
>> -K
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to python_inside_maya+unsubscr...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/1e2bc976-7c5b-403b-a4e1-2000970a43ce%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/1e2bc976-7c5b-403b-a4e1-2000970a43ce%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/fdaf2de6-168d-43fd-8c75-96650c4b4030%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to