Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Label font wrapping (moving to next line on other computers) 2

Status
Not open for further replies.

Steve-vfp9user

Programmer
Feb 5, 2013
337
GB
Hello,

I have created an application and on some of the forms when run, the label text wraps down to a new line. It is a bit difficult to explain here but for example on my computer the text labels are fine but on other computers the application is used on, the labels wrap as if there is not enough room for them to be displyed correctly. The screen resolution is set to 1024x768 on all computers. The only way I can describe this is something like (on my computer):

Enter your surname:

On the other computer:

Enter your sur
name:

[ul]
[li]I have looked at font settings on both computers and they are the same (or appear to be the same).[/li]
[li]The maximum design area I am using is 1024x768 in the foxpro default settings.[/li]
[li]I have tried Autosize F and Autosize T for the text labels but that makes no difference.[/li]
[/ul]

The Visual Foxpro version I am using is 9

Does anyone know why this is happening?

Thanks
Steve
 
Well, the first thing I would check is the labels' WordWrap property. That could conceivably be the culprit, although it's hard to say why that would cause the wrapping on one machine and not the other.

I'd also check that the Alignment property is set to its default. I've seen cases of weird label behaviour caused by Alignment being set to "Right" or "Center", although, again, that doesn't explain the particular issue you are seeing.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Also check the Autosize property. If AutoSize and Wordsrap are both .T., that could possibly explain this beahviour, especially if there are minor differences in the fonts on the two systems. (I know you said the "font settings" are the same, but you might still be using different versions of seemingly-identical fonts.)

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
What I would check is the Windows System Font size and dpi.

If you change that from 100% to 125% or 150% or change the DPI the same font size in pts causes different size in pixels.

I'm sure there is the difference and you should perhaps simply allow more space for the labels, also don't set WordWrap to .T., if you don't want such wraps.

Bye, Olaf.
 
You should also make sure the font you're using is actually installed. If Windows is substituting, it may be substituting something with slightly different metrics.
 
Mike Lewis

Just checked the Word wrap property and this appears to be set at .T. for the text labels.

I will make the changes, try it out in the other office where the issue is and post back if that has cured it.

Thank you to the others who have also add a reply.

Steve
 
Mike Lewis

I have tried our app on the other computer having reset the label text properties to .F.

This has cured the problem.

I still do not why the the wordwrap setting changed to .T. which is a bit strange but all the same, it's now working.

Thank you and others for your advice.

Steve
 
Did you ever use any of the native wizards or builders? Some of them were known to leave wordwrap set to .t.
 
Hi danfreeman

Come to think of it yes. I used an array builder on the form.

Something to keep in mind for the future I think!

Thank you for adding the information.

Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top