[haiku-commits] Re: haiku: hrev45726 - in src: add-ons/translators/tiff add-ons/translators/sgi preferences/backgrounds

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Sat, 1 Jun 2013 14:43:26 -0400

On Jun 1, 2013, at 2:14 PM, Ryan Leavengood <leavengood@xxxxxxxxx> wrote:

> On Sat, Jun 1, 2013 at 3:34 AM, Stephan Aßmus <superstippi@xxxxxx> wrote:
>> 
>> I think you would have to also assign the menu field a weight of 0 for your
>> example to work, or else the menu field and the glue would get their equal
>> share of the available space:
>> 
>> .AddGroup(B_HORIZONTAL)
>>    .Add(fCompressionMF, 0.0f)
>>    .AddGlue()
>> .End()
>> 
>> Using alignments might be another option, but I think in this case they
>> would be more difficult to work with, since the size of the menu field is
>> not fixed and one would have to restrict the max size of it dynamically.
> 
> I doubt anyone has the time or motivation right now, but it might be
> nice if we had some sort of Layout Tips or FAQ which describes how to
> solve these sorts of problems in an idiomatic way. Maybe if you are
> motivated John you could create a wiki page and at least document this
> one?
> 
> Whichever works the best of Rene and Stephan's suggestions...

I'm still waiting for 'Laying it All Out Part 2' :)

Other related posts: