Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a form have an unsizable border with color?
Message
De
01/05/1997 14:02:30
 
 
À
28/04/1997 13:01:05
Liz Luck
3-G International, Inc.
Williamsburg, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00029599
Message ID:
00030484
Vues:
58
Here's another thought....

Set the BorderStyle to 3 and set the MinHeight/MinWidth and MaxHeight/MaxWidth to Thisform.height/Thisform.width in the INIT of the form.

GeneS


>>In VFP 3.0, BorderStyle 3 creates a nice colored border around a form. However, a user can then resize the form, even if it makes no sense to do so!
>>
>>Using BorderStyle 1 or 2 fixes the form size, but wipes out the color.
>>
>>Is there any way to have a colored border which users cannot resize?
>
>------------------
>
>I have two suggestions for this:
>
>1) set BorderStyle = 0 (I think that's NO border) and then use Shapes or
>Lines to draw your own border. This means that the border color may not
>match the user's window borders, but you may not care about that, and
>there's probably a way to capture that information from the system and
>set it at run-time.
>
>2) Let them change the borders, but reset the form's dimensions in the
>Refresh event. (I don't know off the top of my head whether you can force
>this while they're changing the borders or not...)
>
>My personal preference would be for #1, just to keep from eating up
>system resources with frequent repaints, and then choosing a color scheme
>for the whole application to use for your border colors.
>
>Hope this helps!
>
>--Liz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform