lxn/walk — pull request #22 by tajtiattila (2012-09-23 18:13:00+00:00)
Title: TextEdit and LineEdit improvements

Hello, I decided to make a simple gui to my command line go tool, and found walk a really nice fit. Good work!

My gui is really just LineEdits for the filename and for further settings with some pushbuttons to start the action, a progress bar and a TextEdit for the output. So I needed the following improvements:

1. I wanted to be able to append text to the TextEdit, so I added functions for WM_GETTEXTLENGTH and EM_REPLACESEL.

2. I thought it might not be generic enough to adding text to a textedit, so I added the AppendText() to TextEdit in another commit.

3. I noticed that a LineEdit would occupy as much space as available, even with having Spacers around. This looked bad when a field accepted only few characters and was intended to be kept small. So I changed the behavior of SizeHint, MinSizeHint and LayoutFlags, but only if the MaxLength was set to a lower value. This is my third commit.

Please consider pulling them or feel free to suggest better solutions to my problems.