David,
Thank you for your time and help, which (gripe) wouldn't have been neccessary if the people who wrote the documentation had bothered to mention the fact that resize works differently for toolbars.
I tried it with a form before going for the toolbar, but it doesn't have the look and feel that I want. The toolbar seemed like a good idea, because it gets 'embedded' in the form and it's closeable.
I'll think of something else or just live with the facts.
BR
Peter
>Peter,
>
>Toolbars have their own rules about resizing, they basically only allow themselves to "flow" around the contained objects. I'm not sure you'd ever get it to work the way you want. Why not just use a form with AlwaysOnTop = .t.?
>
>>Yes, I actually did put a treewiew on a toolbar. Works too! It is after all just another container, so why not?
>>
>>It's all perfectly straightforward, but maybe I'm being unclear in my explanation.
>>
>>What I meant to say, and thought I'd said, was that the code example in the Resize method below works very well when the TreeView (named TreeMenu) is on a form or formclass.
>>
>>Since the ToolBar class has a Sizeable property and a Resize method, it seems only fair to assume that it can be resized in a similar fashion, so the code should work.
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)