Jack,

So far your idea works the best BUT!

Yes there is a but, how do I make it work when I am entering date to the listbox that the user checks the checkbox option?

Ok, the user has the option of including this name to the printout or not. In the listbox this Checkmark will indicate if it is apart of the printout. There will be a Checkbox option allowing the user to include it or not (check or no check)

So far your example works great in the CellBackGroundPaint as I used red for the color, but can this work for normal listbox entry of some checked and some not checked and if the user does a sort of the names in the listbox, will the check mark follow that row that was checked?

Anyway thanks

Jonathon



----- Original Message ----- From: "CV" <[EMAIL PROTECTED]>
To: "Getting Started" <gettingstarted@lists.realsoftware.com>
Sent: Sunday, March 12, 2006 11:04 PM
Subject: Re: Adding a CHECK MARK in a Listbox



On Mar 12, 2006, at 7:02 PM, Jonathon Bevar wrote:

Harrie,

Thanks for the code example but in Window XP (big pain in the butt) it will not show the CheckMark, but it did show the Copyright symbol so it does work the basic code but not the chr(10003) part in Windows XP.

Ok then, How do I get to see a Check Mark so both Mac and Win systems can use it?

I have seen others use this CheckMark image or whatever in the  ListBox.

Help anyone?


It's very easy to draw a checkmark in CellBackGroundPaint. This method draws a simple one:

Sub DrawCheckMark(g as graphics, x as integer) // x measured from left border of cell
  dim y as integer = g.TextHeight/2
  g.PenWidth = 2
  g.Drawline x, y, x + 3, y + 3
  g.DrawLine  x + 3, y + 3, x + 12, y - 6
End Sub

Call it from CellBackGroundPaint like this:

 If column = 2 and row = 3 then
    DrawCheckMark(g, 5)
    Return true
  End if

Best,

Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to