New topic: 

Fonts in ListBox cells

<http://forums.realsoftware.com/viewtopic.php?t=29748>

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       wee_eric           Post subject: Fonts in ListBox cellsPosted: 
Wed Aug 26, 2009 10:31 am                        
Joined: Fri Jan 11, 2008 6:33 am
Posts: 98              Is it possible to have text in different fonts in 
seperate cells of a ListBox? I can only see a property of TextFont that is 
applied to all cells on the ListBox.
Ta
e   
                            Top               npalardy           Post subject: 
Re: Fonts in ListBox cellsPosted: Wed Aug 26, 2009 10:34 am                     
   
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5231
Location: Canada, Alberta, Near Red Deer              the default behavior of 
the listbox is to use the same font for all cells

if you want different fonts for different cells you need to take over drawing 
of the text by implementing the celltextpaint event     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top               Steve Garman           Post 
subject: Re: Fonts in ListBox cellsPosted: Wed Aug 26, 2009 11:02 am            
                   
Joined: Fri Sep 30, 2005 3:53 pm
Posts: 2940
Location: England              I have a simple demo of how to do this at 
Code:http://rb.sgarman.co.uk/fontBox.rbp     
_________________
Steve Garman
Using REALbasic 2008r2 Professional on Windows Vista Ultimate
and REALbasic 2009r3 Professional on Linux Ubuntu 9.04 Desktop
Occasional blog  
                            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]

Reply via email to