Hi Cesar,
I was thinking along these lines too yesterday, but what if we want to undock the toolbar? Somehow we would need to control the container's size to occupy the whole area in either state.
Great that the thread gave you lots of new ideas, I would have to re-read it carefully too :)
>Mark,
>
>You can put a container in your toolbarwith the whole size of the height that you need. Then, add your buttons to the container. This way, you'll have a toolbar occupying all the space you need.
>
>
>Naomi,
>
>Thanks very much for bringing that thread about toolbars between Craig and Malcolm.
>That brough me lots of new ideas.
>
>
>
>
>>>I tried the following code:
>>>FOR EACH loForm IN _screen.Forms
>>> IF loForm.Baseclass = 'Toolbar'
>>> loForm.BackColor = RGB(174,91,21) && Orange for testing
>>> ENDIF
>>>NEXT
>>>
>>>And got this as a result:
>>>
http://www.gardensoft.com/downloads/screencapture2.jpg>>>
>>>I'll look at the thread on resizing the toolbar next.
>>>Thanks,
>>>Mark
>>
>>Yes, I also tried and found it doesn't work for Docked toolbars.
If it's not broken, fix it until it is.
My Blog