Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form's Caption_Assign
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00424701
Message ID:
00424974
Vues:
20
>>Doru,
>
>I think you meant Hugo...
>
>
>>This is a quote from the document, which was sent among all programers:
>>As a result, each programmer will be required to add a Version Number to the primary screen for each application.
>>I thought, it would be simpler to add a property to our base form class, called nVersion, and put the code, I mentioned, in Form Caption_Assign. We have quite simple own framework with one main object 'JobControl', which calls all other applications.
>
>As I read it, it asks for the version number on the form, not on the title bar. Isn't it less trouble to add a textbox (set it to behave as a label, and put the version code in the refresh) to your form base class?

It would be easier, but I doubt, it could be done at the class level. Form may have pageframe, which covers it, it may have grid in the whole width of the form, therefore would be no place for this textbox. Besides, few programers already implemented this idea (I mean form's caption), IOW, they already put some code in their applications to display version number in the caption.

I just thought, that we should try to generalize this idea and instead of changing each existing application, add a new method to our form class.

>
>>So, now I have to find a way to retrieve Title Bar Font attributes.
>>Could you help me here?
>
>No :(. In fact I tested changing the font attributes of the form at design and run time, and could not see any effect on the form's appearance.
>
>dz

AFAIK, title bar font is not something, that we can change for the particular form. It's Windows settings (right click on your Desktop, Properties, Appearance). That's why for determination of these settings I need either deal with registry (which seems quite complicated for me), either use Windows API functions. Vlad already pointed me to GetSystemMetrics() function, I found Erik's Moore example here in Windows API section, but it doesn't show me, how to find information, I desire. I tried to study Winuser.h file, but it seems to be beyond my comprehansion :( Therefore the code, I already designed (thanks to Nick, Cetin, Hugo for this) is not universal enough.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform