Jump to content

Recommended Posts

Posted

Hi all,

I use the following code to add a multiline edit control to my form:

GUICtrlCreateEdit($line, 10, 80, 50, 310, $ES_MULTILINE)

Works great, but does anyone know how I can add scrollbars (horizontal and vertical) to the control if it contains more text than can be displayed?

Thanks,

DanielDaniel

  • Moderators
Posted

DanielDaniel,

By specifying a style, you have overwritten the default style which holds the scrollbars. :)

So you need to add them back in. Two possibilities:

- 1. Use the default style and add $ES_MULTILINE.

- 2. Add all the required styles yourself.

I strongly suggest reading the Setting Styles tutorial in the Wiki - it goes into much more detail and shows how you should add additional styles. :)

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

 

Posted

  On 3/7/2011 at 4:06 PM, 'Melba23 said:

DanielDaniel,

By specifying a style, you have overwritten the default style which holds the scrollbars. :)

So you need to add them back in. Two possibilities:

- 1. Use the default style and add $ES_MULTILINE.

- 2. Add all the required styles yourself.

I strongly suggest reading the Setting Styles tutorial in the Wiki - it goes into much more detail and shows how you should add additional styles. :)

M23

Doh! Thanks a lot. I'll read your post. :-)

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...