Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put text in right corner of the form's caption
Message
From
08/09/2000 17:05:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00414419
Message ID:
00414437
Views:
25
>>>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.

Then put it in the bottom right corner. You could always tweak the Zorder of the label so it would show on top of a pageframe. Or add it dynamically at runtime in the Init of the form.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform