Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement