Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

FORM caption height

Posted on 2015-01-10
4
Medium Priority
?
256 Views
Last Modified: 2015-01-11
I've got a small FORM with a long caption. Visual FoxPro insists on truncating the caption so that it ends in "...".

Is there any way in which I can increase the height of the caption bar, in the same way that I can do this in a grid object?
0
Comment
Question by:IainMacb
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Olaf Doschke earned 2000 total points
ID: 40542958
Winforms is winforms. The OS is setting the title bar height, not VFP.

Bye, Olaf.
0
 
LVL 1

Author Closing Comment

by:IainMacb
ID: 40542991
Alas.

I'll have to find a tidy way of putting a sub-caption in the VFP space. :-)
0
 
LVL 30

Expert Comment

by:Olaf Doschke
ID: 40543045
Well, you can get rid of the normal form look and design a form as you like, as you can set titlebar off and bordersize to 0, then draw your own, but I'd not recommend that, as you then will need to take care for the different looks on the different OSes and their different modes.

Here's an old how to: http://www.news2news.com/vfp/?example=499&PHPSESSID=e2bd859a6456446d6441a2a29e27e7e0

Instead of just a green titlebar you can also make it higher, but as said, you likely will not look like a citizen of the Windows version.

Also you can draw on any area with gdiplus, there are samples on that in the samples solution.

But the easiest thing of course is to not use the form title for such data, but the form.

Bye, Olaf.
0
 
LVL 1

Author Comment

by:IainMacb
ID: 40543054
Sorted.

I've added an extra textbox control at the top of the FORM, which contains the longer version of the text that I'd wanted to have in the .CAPTION property. The extra control is read-only.

The result looks much tidier than the previous version.

Many thanks for your suggestions.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article discusses the Chain of Responsibility pattern, explaining What it is;Why it is; andHow it is At the end of this article, I hope you will be able to describe the use and benefits of Chain of Responsibility.  Backgrou…
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question