Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms Border Style
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00630703
Message ID:
00630721
Vues:
16
>Hi,
>
>I have a form based on cBizObjMaintBaseForm, wich is designed with
>Borderstyle = 3 (sizable) (the default)
>
>Get it running it has the Borderstyle = 2
>Has anyone got an idea, why?
>...And wich would be the regular way to get the borderstyle I have designed ?
>
>It looks like all forms have Borderstyle=2 at runtime ?
>
>Marcus

cBizObMaintBaseForm automatically switches from 3 to 2 in the Init() method of the form. I would guess the main reason for doing this is to allow you to size the form during design time, but to keep the user from sizing it at runtime. The pageframe doesn't automatically resize with the form, and the form automatically saves the form size/position when it closes. That means if the user accidentally resizes the form smaller than the pageframe, then closes it, it will be messed up the next time they open it.

I would just override the Init() method in your subclass:
IF !DODEFAULT()
   RETURN .F.
ENDIF

This.BorderStyle = 3
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform