Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize a pageframe
Message
 
 
À
10/06/2003 16:30:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00798612
Message ID:
00798733
Vues:
23
Don,

Donspageframe should be defined with PageCount = 0. If you have pages defined in the class you can not rename them in the instance of the class, you can't reorder the pages at design time either. Having PageCount = 0 alleviates the problem.

The pgf already has a Resize event, so you can setup this method in Donspageframe:
for each loPage in this.Pages
   oResizeHandler.Resize( loPage )
endfor
to delegate the actual resizing work to an object that knows how to resize the appropriate controls. On a side note IMHO only editbox, listbox, grid and pageframe should resize.

>I could use some help with resizing container objects such as a pageframe. Suppose I subclass the foundation classes and create my own version of the pageframe. ie Donspageframe. Then I add init code in each of the 2 default pages to resize them upon startup.
>
>thisform.resizeobject(this)
>
>This works just fine if the pageframe has only 2 pages, but in the application it will have more. The additional pages do not inherit the code I added to the default 2 pages. There does not seem to be a way to edit the default pages that make up the pageframe beyond the first 2.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform