New topic: Hierarchical Listbox Disclosure Triangles
<http://forums.realsoftware.com/viewtopic.php?t=47437> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message rmroberts Post subject: Hierarchical Listbox Disclosure TrianglesPosted: Thu Mar 28, 2013 10:16 pm Joined: Fri Nov 10, 2006 1:36 pm Posts: 47 Location: NJ I have a hierarchical listbox in my app. It's working just fineâ¦except for an issue with the disclosure triangles. If the listbox has a background color the disclosure triangles are showing up not as a gray triangle but as a gray triangles in a white box. Looks awful. Also, if you click on the row (not the triangle) the white box turns blue. Naturally the disclosure triangle look fine, no background color, when I remove the background color from the listbox. Is there a way I can have the triangles display without the white box when the listbox has a background color? Here's some code for the listbox CellBackgroundPaint event so you can see what I'm talking about. Oh, and this is on a Mac. g.ForeColor = &cD9DEE7 g.FillRect 0,0,g.width,g.Height Return True Thanks, Rick _________________ REAL Studio 2012r2.1 Enterprise XP, Windows 7, OS X, Ubuntu 12.10 See you in Orlando! Top pbart Post subject: Re: Hierarchical Listbox Disclosure TrianglesPosted: Thu Mar 28, 2013 11:19 pm Joined: Sat Oct 10, 2009 6:40 am Posts: 332 If the app is for a Mac, from memory, you just need to have the 'composite window' checkbox enabled ( in window properties ). If the app is compiled for windows, then I think it's a case of 'roll your own'. _________________ Regards Paul Windows 7 32bit RB 2010 4.1 Top timhare Post subject: Re: Hierarchical Listbox Disclosure TrianglesPosted: Fri Mar 29, 2013 2:39 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 12183 Location: Portland, OR USA You don't have access to the portion of the row where the disclosure triangle is drawn, so there's not much you can do. In CellBackgroundPaint, the graphics object represents the portion of the cell to the right of the disclosure triangle. It does not include the area of the triangle. Colored backgrounds are a no-go with hierarchical listboxes. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 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]
