Solved

FORM caption height

Posted on 2015-01-10
4
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Software development teams often use in-memory caches to improve performance. They want to speed up access to, or reduce load on, a backing store (database, file system, etc.) by keeping some or all of the data in memory.   You should implement a…
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…

710 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