New topic: Listbox CellbackgroundPaint and CellTextPaint.
<http://forums.realsoftware.com/viewtopic.php?t=34374> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message JustSomeGuy Post subject: Listbox CellbackgroundPaint and CellTextPaint.Posted: Wed Jun 23, 2010 10:08 pm Joined: Fri May 11, 2007 11:35 am Posts: 911 These two methods of the listbox class are passed g as graphics. When I inspect g.Width and g.Height they appear to be the width and height of the listbox itself, rather than the cell I am about to paint into. How do I get the cell dimensions? _________________ 6502 Assembler on Steroids Top piMaster Post subject: Re: Listbox CellbackgroundPaint and CellTextPaint.Posted: Wed Jun 23, 2010 10:26 pm Joined: Fri Sep 30, 2005 9:12 am Posts: 695 Location: Rockford, IL CellBackgroundPaint should give you the visible area of the cell. If its not, then that would be a bug and should be reported. I would imagine that CellTextPaint would be the same, but I'm not sure about that one. Does your listbox have any rows in it? If not, that may be the reason. _________________ RB2010r2 Pro on Win XP Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
