dalewolver wrote:
> Am trying to use the CheckListBox and only allow single selection. 
> However when I set MultiSelect to False, I can still select many 
> items. Delphi 7 

Selecting an item means clicking on it anywhere such that it is 
highlighted. TCheckListBox inherits the MultiSelect property from 
TListBox, so that property obviously has nothing to do with how many 
items can be checked.

It sounds like what you really want is a TRadioListBox. Delphi doesn't 
come with such a thing, but it does come with TRadioGroup. Maybe that 
would meet your needs.

Another way to do it is to use a drop-down list box. Only one item may 
be selected in that control.

If you're hooked on the look of TCheckListBox, then you'll either need 
to find some other control that behaves more like a list of radio 
buttons, or you'll have to write your own control. There are two aspects 
to that. One is implementing the logic of unchecking any other items 
when a new item gets checked, and the other, equally important aspect is 
painting the control using radio images instead of check-box images.

-- 
Rob


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to