Page 1 of 1

TextBox

Posted: 15 Feb 2009, 00:01
by AnnaS
Hello!
I have 2 problems with your TextBox Unicode control.

Problem 1)
a) Set .DontRedraw to TRUE
b) Call .SetFocus
The control flashes and redraws although .DontRedraw is still TRUE

Problem 2)
a) Set .DontRedraw to TRUE
b) Set .Text to a multiline text that causes the vertical scroll bar to resize because there a more lines now.
c) Set .DontRedraw to FALSE
The control first draws the old, larger vertical scroll bar (if one was shown before), then flashes and draws the new, smaller scrollbar.

Thank you!

Re: TextBox

Posted: 16 Feb 2009, 20:09
by TiKu
This is pretty sure a bug of Windows itself. The DontRedraw property is just a wrapper around the WM_SETREDRAW message. In Windows, some controls don't support this message at all (e. g. the SysTabControl32, i. e. the tab control). Others support it, but not to 100%. Looks like the Edit control is one of those.