×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Autofit() plus a bit

Autofit() plus a bit

Autofit() plus a bit

(OP)
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.

RE: Autofit() plus a bit

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

RE: Autofit() plus a bit

(OP)
Hello Mike,

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

Regards,

David.

Recreational user of VFP.

RE: Autofit() plus a bit

If you “Autofit() plus a bit”
Then with added code you must, ah, quit!

Your OJ eye-opener.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Autofit() plus a bit

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

RE: Autofit() plus a bit

(OP)

Quote (Scott24x7)

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close