> > If the IDE can distinguish between ENTER and Focus lost
> when the value
> > didn't change (e.g. say if it calls property handlers again
> when ENTER
> > is pressed but doesn't when Focus is lost [say TAB is pressed] as I
> > hope it does), then also the ENTER action ("reset value") should be
> > considered an edit and the respective property/event name
> also stored
> > at the recent list
>
> See
> procedure TOICustomPropertyGrid.SetRowValue;
> It checks if value changed.

Do you feel this is consistent with the behaviour of properties in Object
Pascal? I mean when you do

A.X:=1;

And X is a property of the class of an A instance, having a write accessor
method, then it calls the accessor (maybe it doesn't call it if "default 1"
is used in the definition of X, although I think the "default" stuff is used
only when reading/writing properties from/to streams and not in assignments
too [although it would be nice to work like that, could be used for loop
breaking in data flow graphs])

Not sure what the Delphi object inspector does when you press ENTER - if it
calls the property read/write accessors [supposing on has defined such at
the property] when you keep the same value but press ENTER instead of just
focus some other property or window, if it calls the property's write
accessor method (if one exists for that property) or not.

>From your comment I suppose Lazarus doesn't do something in that case (?).
I'd expect the contrary to be the "correct" behaviour (the one a user would
feel more natural I mean). For example one might be setting properties of
some hardware-accessing component that does some action (say reset etc.)
when say 0 is set to a property. User might be puzzled seeing it not do the
expected action when they press ENTER at that property (they'd have to set
the value to something else, then set it back to 0 to do the action they
wanted). I say above about a needed distinction between ENTER and focus
lost, cause focus lost isn't an explicit user action I feel. For mouse could
have double click to force set the value displayed at the property editor
[in edit mode] again (make it equivalent to ENTER) when the value isn't
changed

----------------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 6:43:29 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



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

Reply via email to