Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put text in right corner of the form's caption
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00414419
Message ID:
00414433
Views:
21
>>Hi everybody,
>>
>>Recently we decided to put version number in the right corner of the form's caption for all our applications. Therefore, I think, we'll add a new property to our form, say, CurrentVersion, and we have to find a way to stuff this info into right corner of the title bar (we would have the similar problem for screen too, since our main application resides in VFP Screen). IOW, there is the problem:
>>
>>My Caption
>> should be
>>My Caption                                V 1.1
>>
>>
>>Could you please help me to write this method (InsertVersionNumber)?
>>
>>Thanks in advance.
>
>Hardly worth the trouble. You'd have to calculate the position within your Caption string using FONTMETRICS and your form's size. Much easier to just put it in the upper right corner of your baseclass form as a label, and be done with it.

Fred,

I'm not sure, we can use your idea. The form may have a pageframe, which covers space from the top to almost the bottom leaving a little space for navigation bar. So how would we insert a label in this case? Form's caption seems to be a more generic place, though it's not universal, I agree.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform