[haiku-bugs] [Haiku] #9857: BMenufields behaving strangely

  • From: "scanty" <trac@xxxxxxxxxxxx>
  • Date: Sun, 07 Jul 2013 17:26:43 -0000

#9857: BMenufields behaving strangely
-----------------------+---------------------------
 Reporter:  scanty     |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  R1
Component:  - General  |      Version:  R1/alpha4.1
 Keywords:             |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+---------------------------
 I have a view with a number of statically sized BMenuFields stacked one
 above the previous in a column.  It should appear as a column of same-
 sized BMenuFields as they are all the same size in width and height when
 created.  However this does not occur.  It looks as if the BMenuFields are
 smudged downward and increase in size despite their BRects.  Here is the
 code I use to create them:


 {{{
 BRect r (8, 128, 120, 32);
         fHueField = new BMenuField(r, "_hue_menu", "Hue", fHueMenu, true);
         fHueField->SetDivider(0);

         r.Set(8, 156, 120, 172);
         fSaturationField = new BMenuField(r, "_sat_menu", "Saturation",
 fSatMenu, true);
         fSaturationField->SetDivider(0);

         r.Set(8, 184, 120, 312);
         fContrastField = new BMenuField(r, "_contrast_menu", "Contrast",
 fContrastMenu, true);
         fContrastField->SetDivider(0);

         r.Set(8, 212, 120, 452);
         fBrightnessField = new BMenuField(r, "_bright_menu", "Brightness",
 fBrightnessMenu, true);
         fBrightnessField->SetDivider(0);

         r.Set(8, 240, 120, 592);
         fGammaField = new BMenuField(r, "_gamma_menu", "Gamma",
 fGammaMenu, true);
         fGammaField->SetDivider(0);
 }}}

 And a screenshot follows.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9857>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: