Sure, I foget that toolbar resize self automatically to as less size as possible to show all cntrols inside. So, when you will set width of toolbar to '10000', it will resize self to something like 'Width = 346, height =
'. Though it is hard to restore size of toolbar in run-time, because you need to store number of control lines instead of width/height. So, when user resized toolbar to show its controls in 2 lines, you may set width to something less than total width of all controls and you will have the same effect.
Try also to set 'Width = StoredWidth + 1' when restoring layout.
HTH.
>In our toolbar restore code, we call the DOCK() method, passing the dock state, left and top. Then, we just set the width, which resizes the toolbar appropriately.
>
>>Hi Vlad,
>>Thanks I tried different orders of restoring the toolbar without luck..
>>Sometimes the height,width,top,bottom have no effect...
>>
>>There moust be something else with the timing.
>>(At init,show,activate time??)
>>
>>Anyone have any code that could help me here?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.