--- In [email protected], "Biju Kumar Nair" <[EMAIL PROTECTED]>
wrote:
> I am using CheckListbox to get 3 Fields(String) value of a tble.
> i should show it on the checklist box as 3 column with relevent
> space one after one.but when i add data to the checklistbox the
> thirdstring value column not not aligned even i use a function to
> adjust the space.

Hi,

What you want cannot be done in a CheckListview, unless you use a
fixed-size font. The CheckListboc has a columns property but that just
sets the number of colums that your output will be displayed in. Thus,
if you use 3 columns and there can be only 5 items placed vertically,
then the listbox will display one column if you have 5 items or less,
2 columns if you have 6 to 10 items and 3 columns if you have more
than 10 items. It will also display a scrollbar if you have more than
15 items.

What you should use, actually, is the TListview component. (Or a grid
component.) You could then use the onCustomDrawing events to draw a
checkbox (use the DrawFrameControl API) and your texts on the canvas
of this control, exactly the way you want it to be placed.

The Listview component is a slightly better control for this in my
opinion, btw. But that's just a matter of personal preferences.

With kind regards,
X Katja Bergman.




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