delta wrote:
Is it possible to have a read only Edit box with white background (well, other than setting the whole background white)?
I don't know of any easy way, but it's on the to-do list to allow custom background colors for individual controls.
Quote:
Also, when I change the text in the Edit control via GuiControl it is always completely selected?
I think the select-all behavior results from navigating/focusing the control rather than using GuiControl. I tested GuiControl to insert new text while an Edit has focus and it didn't cause select-all. But I could be missing something.
Quote:
...the text it selected after posting it to the control and also, that is it scrolled down. Well, you could send ^{Home} for that, but it is really the only way?
There are a lot of messages you can send to an Edit control and I'm not well versed in them yet. In case you need it, here is one that sets the caret position to the top of the control:
Gui +LastFound
SendMessage, 0xB1, 0, 0, Edit1 ; 0xB1 is EM_SETSEL. The first 0 is selection's start pos. and the second is end pos.
Thanks for this feedback about the Edit control. At the very least, I think the documentation needs to be improved about how to set selections, caret positions, etc. But some more built-in functionality would probably be good too.