Nello Sestini wrote:
> This does what you want I think:
> 
> procedure TForm1.ListView1Editing(Sender: TObject; Item: TListItem;
>   var AllowEdit: Boolean);

No, this is no good. See below.

> I'm not sure why you want to remain in edit mode if you aren't
> going to allow your user to make changes to the caption ...

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?  I would also
like a Rename on a Popup Menu to rename an item without loading a dialog
form.

Cheers,
Ross.

---------------------------------------------------------------------------
    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/

Reply via email to