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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autofit() plus a bit 1

Status
Not open for further replies.

David Higgs

Programmer
May 6, 2012
392
GB
When using Autofit() within a Grid Column set to Align Left, I find that the Column could do with being a little wider especially on the right hand side. To get over this I have used the following code:-

Code:
	this.column3.autofit()
this.column3.Width = this.column3.width+5

which to me looks a lot better than just Autofit(). Is this the right way to go or is there a more elegent way of doing the same?

Regards,

David.

Recreational user of VFP.
 
Hi David,

For what it's worth, I've had the same problem, and your solution is exactly how I have solved it. I don't know if there is a better way, but the way you have shown works fine for me.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hello Mike,

Thank you for your confirmation; I'll continue with my code.

Regards,

David.

Recreational user of VFP.
 
If you “Autofit() plus a bit”
Then with added code you must, ah, quit!

Your OJ eye-opener.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
Skip,
You're standing too close to the unlit burner.

David,
I think this is the first time I've ever starred a question. Because the solution you have for it so useful!


Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Scott24x7 said:
David,
I think this is the first time I've ever starred a question. Because the solution you have for it so useful!
Hello Scott,

Thank you for my First Star; as a VFP Novice I'm pleased you liked my solution!

Regards,

David.

Recreational user of VFP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top