Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize does not work with toolbar
Message
De
09/07/2004 16:01:18
 
 
À
09/07/2004 08:49:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00922452
Message ID:
00922695
Vues:
17
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
*Instantiate form
DO FORM myform NAME oform
*Toolbar button click
IF TYPE('oform')="O" .and. !ISNULL(oform)
   WITH oform
	.TreeMenu.HEIGHT = (.HEIGHT - 15)  && The treeview
	.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   && The toolbar
>	.TreeMenu.HEIGHT = (.HEIGHT - 15)  && The treeview
>	.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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform