Solved

FORM caption height

Posted on 2015-01-10
4
194 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 29

Accepted Solution

by:
Olaf Doschke earned 500 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 29

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
"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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 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