General information
Category:
Forms & Form designer
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only