As Mike pointed out it a CheckBox list could go on forever, so I propose a 
possible solution based on this fact :

Given that we have a check box with items in a TStringList wouldn't it be 
more practical to simply write the TStringList out to a file using a loop 
and printing it out using a your favourite report engine which could then 
make it look really good.  Report Manger from source forge can read native 
text files and you could simply use two fields in the dataset as laid out 
below:

IsChecked         Caption
0                       UnChecked Item
1                       Checked Item
1                       Checked Item
0                       UnChecked Item
1                       Checked Item

Any decent reporting tool will be able to make simple work of the file and 
output what you need.  In the report engine you could use an if statement to 
either display or not display a check mark.  The square icon will be the 
default for each line.

Yours sincerely

Andre van Zuydam
Spiceware Software

----- Original Message ----- 
From: "Stephen Posey" <[EMAIL PROTECTED]>
To: "Delphi-Talk Discussion List" <[email protected]>
Sent: Tuesday, December 13, 2005 9:29 PM
Subject: Re: Printing Items in a TCheckListBox


>M Tuttle wrote:
>> Hi Stephen,
>>
>> The CheckListBox may contain several hundred items.  Therefore printing a
>> canvas is not what I want to do.  I would much rather iterate thought the
>> list and print a small bitmap representing a checked or unchecked check 
>> box
>> followed by the text of the TCheckListBox item.  Any examples of how I 
>> could
>> to do that?
>
> Rather than bothering with creating and positioning small
> bitmaps, I might suggest you use glyphs from the Wingdings font
> for this purpose.
>
> The Glyph at character #$A8 looks like an empty check box;
> character #$FD represents a box checked with an X and character
> #$FE represents a box with a check mark (depending on how you
> want to represent them).
>
> HTH
>
> Stephen Posey
> [EMAIL PROTECTED]
> __________________________________________________
> Delphi-Talk mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi-talk
> 

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to