[haiku-bugs] Re: [Haiku] #8129: BTextControl , SetFontSize() doesnt work?

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Tue, 15 Nov 2011 08:38:05 -0000

#8129: BTextControl  , SetFontSize() doesnt work?
----------------------------------+--------------------------
   Reporter:  cipri               |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/alpha3
 Resolution:                      |   Keywords:  BTextControl
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+--------------------------

Comment (by ttcoder):

 I'm probably off on this, but maybe this part of the bebook...


 {{{
 By default, a BTextView displays all its text in a single font and color.
 The SetStylable() turns on support for multiple character formats
 }}}

 means that the defaults color/size are not only unified but also ''locked
 in'', and can only be changed after calling
 mytextontrol->TextView()->SetStylable( true ).. (?)

 Not sure why SetFontAndColor() half-works when other setter methods don't
 work at all though...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8129#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: