New topic: 

Listbox standard fonts and row height

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        eliott          Post subject: Listbox standard fonts and row 
heightPosted: Mon Feb 18, 2013 2:16 am                         
Joined: Sun Oct 17, 2010 9:46 am
Posts: 73
Location: Berlin, Germany                Carbon and Cocoa - I can't check how 
it is on Windows and Linux at the moment.

In the window designer I add a Listbox and set some of its properties:

- DefaultRowHeight: -1
- TextFont: System

When running the window, I get the following values:

-> TextSize: 13
-> RowHeight: 16

Now I change the TextFont while the window is running:
lbx.TextFont = "SmallSystem"This now gives me:

-> TextSize: 11
-> RowHeight: 16

So the text size was adjusted, but the row height not. It is the same the other 
way around when starting with TextFont set to "SmallSystem" in the IDE and 
changing to "System" while the window is open (RowHeight is then always 13).

Of course you have to change the DefaultRowHeight when you change the TextFont 
and/or TextSize property, but shouldn't this happen automatically for the RB 
framework provided standard fonts "System" and "SmallSystem". Switching between 
"System" and "SmallSystem" in the IDE changing the RowHeight property but not 
in code feels erroneous to me.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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