On 11/01/2008, Paul Ishenin <[EMAIL PROTECTED]> wrote:
> > 1)  Is Edit1's selection supposed to disappear (only showing text) or
> > should the selection rectangle appear in a 'greyed' color like
> > ListBoxes or Grid's?
>
> when edit lose focus then dissapear
> when form lose focus then grayed

Ok, that makes sense.


> > 2)  Is it possible for the programmer to control this behaviour in
> > Lazarus or Delphi?
>
> What exactly?

I don't know... maybe 'always show selection' even if lost focus (via
form or other component).

> > 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)?

>
> > 5)  Does TMemo act the same as TEdit?
>
> no

All hell!   :-)




Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to