I don't understand completely. You have a formclass with a treeview control right? The object .TreeMenu is a property of the form? There is no treeview control on the toolbar, correct? So THIS refers to the form not the toolbar, correct? If so, how did you instantiate the form? Is there an object reference for it so you can change it to something like
DO FORM myform NAME oform
IF TYPE('oform')="O" .and. !ISNULL(oform)
WITH oform
.TreeMenu.HEIGHT = (.HEIGHT - 15)
.TreeMenu.WIDTH = (.WIDTH - 25)
.TreeMenu.TOP = (.HEIGHT - .TreeMenu.HEIGHT) / 2
.TreeMenu.LEFT = (.WIDTH - .TreeMenu.WIDTH) / 2
ENDWITH
ENDIF
Sorry if I misunderstood completely.
>On a formclass with a treeview control this works perfectly fine:
>
>
>WITH THIS
> .TreeMenu.HEIGHT = (.HEIGHT - 15)
> .TreeMenu.WIDTH = (.WIDTH - 25)
> .TreeMenu.TOP = (.HEIGHT - .TreeMenu.HEIGHT) / 2
> .TreeMenu.LEFT = (.WIDTH - .TreeMenu.WIDTH) / 2
>ENDWITH
>
>
>On a toolbar it does zilch. Why?
>
>BR & TIA
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"