Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a form have an unsizable border with color?
Message
From
28/04/1997 13:01:05
 
 
To
24/04/1997 15:46:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00029599
Message ID:
00029940
Views:
38
>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
Map
View

Click here to load this message in the networking platform