Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a form have an unsizable border with color?
Message
De
28/04/1997 13:01:05
Liz Luck
3-G International, Inc.
Williamsburg, Virginie, États-Unis
 
 
À
24/04/1997 15:46:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00029599
Message ID:
00029940
Vues:
40
>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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform