Hi Fabio,
Thank you.
I'd arrived at someting similar, only with a Shape.
.oToolBar.Shape1.WIDTH = .oToolBar.WIDTH + (.WIDTH - .oToolBar.WIDTH)
Where WIDTH is the forms width.
I tried to do it in the toolbars refresh method, but that didnt quite work. It did resize, but except for the initial form, always to less than desired.
Regards
Peter
>>Adding the toolbar in the forms activate method causes a pageframe to shift downwards and leaves the space to the right
>>of the toolbar in default color.
>>
>>I've tried various methods to size the toolbar to the width of the containing window, including sizing a shape at runtime, but nothing quite works.
>>
>>I imagine it's because the number of visible cmdbuttons on the toolbar varies depending on the form being run.
>>
>>Any and all suggestions are appreciated.
>>
>>TIA
>
>try to:
>
>add into the toolbar a commandbutton "Invisible" "disabled"
>change this button's width to resize the toolbar's width.
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)