Jump to content

Recommended Posts

Posted (edited)

Is there a control style to make labels span multiple lines, because I am not seeing one..  And I would think that, since the control itself is just displayed text, it would have something like that....

Edited by MattHiggs
Posted

You can use CR/LF/CRLF in a label to make it move to the next line. There is no default way to make a long string for a label break up into multiple lines, like an edit.

The easiest way to do it would be to use an edit control with the $ES_READONLY.

The next best thing would be to check out this thread I posted in a while back

 

Which will measure the string against the control and break it up into an array, each row representing a line.

  • Moderators
Posted

MattHiggs,

Take a look at my StringSize UDF (the link is in my sig) - it allows you to wrap a long string into a given width or determine what size label you need to fit the string.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...