Alright, I try it. I've tried goin down the CellBackgroundPaint route before with a gif checkmark. I'm sure it would work, I just cant get it to work right. The bgpaint and textpaint events are some weak points for me. If someone could explain a little more in depth or lead me to a tuturial with some examples that would be awesome. I would like to understand some of these events more. Thanks, I'll play with it some more and see what I come up with. - Brando
Joe Huber wrote: > > At 2:57 PM +0200 9/9/06, Arnaud Nicolet wrote: >>You'll have to use the CellTextPaint event of the listbox. >> >>in this event, you have a graphics object, where >>you can first set the font and the colour, then >>use g.DrawString "",x,y (x and y are parameters >>of the event which indicate the preferred >>location to draw the text, where the OS would >>draw it if you didn't handle that). Then, return >>true. > > Yes, this is exactly right. > > The one thing I'll add is that this same event > will fire for EVERY cell in your listbox, and so > you need use the Row and Column passed into this > event to decide whether you want to draw text > into this cell yourself (return True) or let RB > draw the normal text into this cell (return False) > > If you do want to draw your own text, then also > use the Row and Column parameters to determine > the correct text for this particular cell. > > Hope this helps, > Joe Huber > _______________________________________________ > 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> > > -- View this message in context: http://www.nabble.com/Changing-font-and-color-in-individual-cells-in-ListBox-tf2242993.html#a6236264 Sent from the REALBasic - Users forum at Nabble.com. _______________________________________________ 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>
