New topic: 

styledtext propety and 'bold'

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

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       Chuck           Post subject: styledtext propety and 
'bold'Posted: Fri Oct 16, 2009 1:18 pm                               
Joined: Sat Apr 08, 2006 9:12 pm
Posts: 56
Location: Victoria, BC, Canada              Hi:
I have a textfield that contains styledtext.
In my canvas.paint event I have the following code..

    Dim stp as StyledTextPrinter
    Dim g1 as Graphics
    g1=Canvas1.Graphics
    
    If g1 <> Nil then
    
    stp=Txtfld(0).StyledTextPrinter(g1,72*7.5)
    stp.DrawBlock j+((225-j)/2)+7+val(cb1.text),310+l,72*10
    
    End if

This draws the textfield with all its fonts....italics...textsize but not the 
bold attribute...onto my canvas....and leaves the background intact...perfect 
except for the 'Bold'

Any ideas?

Thanks Chuck   
                            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