Ok, i will detail what i exactly need.
I have a window in which i have a toolbar.
I want the toolbar to be dockable as well as floating.
You can see the floating toolbar in OpenOffice as follows:
Hold Ctrl key and drag the main toolbar in OpenOffice anywhere in the OpenOffice Writer window. After releasing the mouse button the toolbar will become floating. To dock it again hold Ctrl key again and drag the toolbar to the left, it will be docked to the left.
Same thing you can see in MS Word.
As i pointed out earlier, check out the following article about floating toolbars in OpenOffice:
http://www.linuxjournal.com/article.php?sid=7850
I want this funxctionality in my application and i want to know the X-windows API for that.