in the unit that you need to use the protected method...
type
THackCustomListBox = class(TCheckListBox)
begin
(myCheckListBox as THackCustomListBox).MultiSelect := True;
end;
Hope this helped.
NIRAV KAKU
On 8 Jun 01, at 8:24, James Low wrote:
> I am using a TCheckListBox and see its imediate ancestor is TCustomlistBox.
> TCustomlistBox has a protected property Multiselect. However, when I use my
> TCheckListBox so:
>
> (myCheckListbox as TCustomListbox).Multiselect := TRue
>
> I get told the property does not exist. The VCL code implements Multiselect.
>
>
> Why is this ... and how do I get by ListBox to Multiselect? I guess I am
> missing something fundamental. The problem is not the "myCheckListbox as
> TCustomListbox" bit as I can free the object etc ...
>
> In advance thanks.
> ---------------------------------------------------------------------------
> 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"
>
>
- From the Shreemat Bhägwat Gïta -
'Sarcasm is the lowest form of wit.'
---------------------------------------------------------------------------
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"