Graeme Geldenhuys wrote:
4) Also what happens if you set the selection for Edit1 via code
(.SelectAll method), but Edit1 doesn't currently have focus? Does the
focus jump to Edit1 automatically?
no
Umm... So if Edit1 doesn't have focus, no selection is show.
Somewhere else in code you call Edit1.SelectAll, but because Edit1
doesn't have focus, nothing (visual) changes in Edit1 - it still only
shows a edit box with text (no selection rectangle).
Then when the user tabs to Edit1, everything is selected. What if
programatically on partial text was selected. As soon as Edit1
receives focus the previous selection is ignore and everything gets
selected (normal default behaviour). So why is the point of being
able to programatically do a selection it it's never seen (visually)?
I mean that focus doesnot jump to edit, but it show selection as when it
has focus. You can just SelectAll on getting focus and deselect all on
loseing focus.
Best regards,
Paul Ishenin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives