Ultimate Red Dragon wrote:
Also, um, why do 'multiline' textfields (and richedit fields) that I create not seem to go down a line when I hit enter?

That's the way it works(tm). Enter will trigger the Default button (the Ok button usually). Ctrl-Enter will give you the newline.

But, you can create the control with the -addstyle => ES_WANTRETURN option, and that will make the _control_ capture the Enter keypress and make a new line for you. This only works for multiline controls.

Now, I know you use The GUI Loft, so I added a WantReturn property to the Textfield and RichEdit controls. Download the new release here:

http://www.bahnhof.se/~johanl/perl/Loft/


/J

------ ---- --- -- -- -- -  -   -    -        -
Johan Lindström                    Boss Casinos
Sourcerer                     [EMAIL PROTECTED]
                 http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail


Reply via email to