Place a toolbar next to another one

Place a toolbar next to another one

Anonymous
Not applicable
548 Views
2 Replies
Message 1 of 3

Place a toolbar next to another one

Anonymous
Not applicable

Hi there

 

Is there any way to place a toolBar next to another one in MEL ?

 

Say for example I've got these two toolbars:

string $window = `window`;
    formLayout;
        button "Toolbar 1";
toolBar -area "bottom" -content $window;

string $window = `window`;
    formLayout;
        button "Toolbar 2";
toolBar -area "bottom" -content $window;

I can then drag one next to the other one. But can it be done by script?

 

Thank you

0 Likes
Accepted solutions (1)
549 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

Hi

 

I'm not sure if this is the recommended way of doing it, but I seemed to get it working by creating the toolBars and then editing their area afterwards like this:

 

string $window = `window`;
  formLayout;
    button "Toolbar 1";
$toolBar1 = `toolBar -area "bottom" -content $window`;

string $window = `window`;
  formLayout;
    button "Toolbar 2";
$toolBar2 = `toolBar -area "top" -content $window`;

toolBar -e -area "bottom" $toolBar2;


Cheers

 

Mike

Message 3 of 3

Anonymous
Not applicable

Ah yeah that does the trick thank you!

Bit dirty but it works 🙂

0 Likes