Toggle the docked/floating state
| 659 | // Toggle the docked/floating state |
| 660 | // |
| 661 | void ToolBar::SetDocked( ToolDock *dock, bool pushed ) |
| 662 | { |
| 663 | // Remember it |
| 664 | // mDock = dock; |
| 665 | |
| 666 | // Change the tooltip of the grabber |
| 667 | #if wxUSE_TOOLTIPS |
| 668 | mGrabber->SetToolTip( GetTitle() ); |
| 669 | #endif |
| 670 | |
| 671 | // Set the grabber button state |
| 672 | mGrabber->PushButton( pushed ); |
| 673 | |
| 674 | if (mResizer) |
| 675 | { |
| 676 | mResizer->Show(dock != NULL); |
| 677 | Layout(); |
| 678 | } |
| 679 | } |
| 680 | |
| 681 | // |
| 682 | // Notify parent of changes |
no test coverage detected