Sign in to follow this  
Followers 0
Mast3rpyr0

Pixels in a string

6 posts in this topic




Is there any way to find the number of pixels that a string takes without having to write it out first?

What?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Lol never mind I give up on this project.

Sorry to hear that.. I was trying to understand what you were talking about... but no specifics were given...

Anyway... this may/may not be of some help...

http://msdn2.microsoft.com/en-us/library/ms534233.aspx


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Ok, ... Pixels in a string.

Wow. Talk about mixing one's metaphors.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

The function you want is MeasureString I believe. You give it a string, a font, and a device context if I remember correctly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0