Hi all,
I trying to add new button to the Status line:
global proc toggleMyToolsButton() {
global string $gStatusLine;
global string $gStatusLineForm;
$statusLine = `formLayout -parent $gStatusLineForm`;
$gStatusLine = `flowLayout`;
setParent $statusLine;
$buttonForm = `formLayout`;
// Just a button
global string $gMyToolsButton;
$gMyToolsButton = `iconTextCheckBox -image1 "bullet_selectSolverNode.png" // test
-annotation ("My tools")
-changeCommand ("ToggleChannelBox") channelBoxButton`; // test
///
// Set up the attachments.
//
formLayout -edit
-attachForm $gMyToolsButton top 1
//-attachControl $gMyToolsButton left 0 $gLayerEditorButton // Why this don't working?
-attachNone $gMyToolsButton bottom
-attachNone $gMyToolsButton right
$buttonForm;
}
toggleMyToolsButton();
But I don't alighn new button to other button like a "Show/hide Attribute editor/Layer editor/Channel box, etc.":