Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize does not work with toolbar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00922452
Message ID:
00922808
Vues:
22
Barbara,

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.


>>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
>
>I question your comment about "This" being the toolbar in the code you've posted. I've never seen a treeview on a toolbar before. Plus, you stated that the code is in the form class. Therefore, I assume that "THIS" is really referring to the form.
>
>So have you actually put a treeview in a toolbar and are trying to resize the toolbar?
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform