It turns out EditCaption doesn't work in the OnEdited event because edit mode is
automatically terminated after this event fires :(. It appears there is no way
of doing it apart from attempting to fix the built-in OnChanging event code.
Ross.
Nello Sestini wrote:
> > The procedure I quoted was only an example showing the possible bug in
> > Delphi. I am actually allowing a rename and checking that the new caption
> > doesn't already exist & is a valid name -- similar to renaming a file in
> > Explorer. Is there some way to force an item into edit mode?
>
> TListItem.EditCaption() and TListItem.CancelEdit() might do the
> job here.
>
> -ns
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/