Solved

FORM caption height

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

Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

Question has a verified solution.

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

One of the most frequent problems a "newbie" developer may encounter is having to deal with different data formats. One for all: THE DATE We, as humans, need to "see" a date and then interpret it (much of the times this is an automatic operation)…
Introduction This question got me thinking... (http://www.experts-exchange.com/questions/28707487/GLOBALS.html) Why shouldn't we use Globals? This is a simple question without a simple answer.  How do you explain these concepts to a programmer w…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

635 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