Just to reply to my own email here.
I can see why no one replied.
The header control will not resize if you set themin and max widths to be
the same as the width of the column, BUT the header in the Listview is I
guess based on teh header controls base class, BUT the above about the min
and max widths doesnt apply.
I found I had to trap a message in the TCustomListView class, and then pass
back another message to tell it it had stopped "Tracking" as its know in the
code.

I.e.
    with Message.NMHdr^ do
      case code of
        HDN_TRACK:
          begin
            Message.result:=HDN_ITEMCHANGED;
          end;

I obcourse had to make a copy of the code in ComCtl and make my own listview
to use the code above only in the control I wanted, BUT I got the result I
wanted.

Might help some one ONE day :)

Jeremy Coulter

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, 4 May 2001 04:43
To: Multiple recipients of list delphi
Subject: [DUG]: Stop listiview columns resizing


Hi all. How do I stop listiview columns from  resizing?

I have set the min wwidth and max width in the column items properties, but
ti still resizes.

Anyone got any ideas ??

Cheers, Jeremy Coulter



Jeremy Coulter (Manager)
Visual Software Solutions
Christchurch, New Zealand
PH 03-3521595
FAX 03-3521596
MOBILE 021-2533214
www.vss.co.nz

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

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

Reply via email to