Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximizing form classes
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00700471
Message ID:
00700764
Views:
15
>Hi Dan:
>
>I forgot to ask you a question as a followup to the maximizing the MM forms. My client (in addition to being able to mazimize the form) would like to see the font size of the forms and fields enlarged in all the forms of the system. I'm thinking that the best way to do this is to migrate up to the parent class of the forms that I'm using (i.e., probably the cbizobjmaintbaseform) and make the font size changes there. Would that be the best route to go?
>
>Thanks, David

I'll try to zip up the latest versions of the resizer and e-mail them to you sometime today or tomorrow. Just so you know, they DO require you to modify the C-level form classes; hopefully the next version of the framework will include a layer above this one (or below, depending on your viewpoint) that the modifications can be moved to. The standard framework forms all inherit from this level and my resizer + resizing properties need to be added to every form object. I've got a simple program to help automate this, but it's something to keep in mind. I ended up doing it this way to give myself the maximum amount of flexibility in how every control gets resized (as opposed to an observer-type pattern). Because of this, it's possible to use a completely different resizer on a per-object basis if necessary.

I also had the requirement to allow the users to increase/decrease the font size. I added two hot-tracking buttons in the lower righthand side of the form to do this. Basically all they do is call two form level methods (EnlargeFont() and ShrinkFont()). They handle increasing/decreasing the font size; I cap the fontsize at around 21, and the minimum is 8. One thing to keep in mind is to allow enough space between the controls. My code doesn't do much more than increase/decrease the fontsize; I don't attempt to move the controls to keep them from overlapping each other (which is why I limit the min/max of the font).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform