[haiku-commits] Re: r43119 - haiku/trunk/src/servers/notification

  • From: Alex Wilson <yourpalal2@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 2 Nov 2011 12:07:35 -0600

On Wed, Nov 2, 2011 at 11:51 AM, Philippe Houdoin
<philippe.houdoin@xxxxxxxxx> wrote:
>> I'm not sure about the ApGroupView being (and looking like) a BBox.
>> Thoughts about that ?
>
> Having a more generic layout-aware Collapsable/FoldableView will be
> great beside Notifications scope...
> Just an hint.
> ;-)


This wouldn't be too tricky, just use a BGroupLayout (or subclass)
with big spacing and draw things between your elements. When the
element below is visible, draw the V arrow (or whatever) when the
element below is collapsed, draw the > arrow. The overall
implementation would look similar to, but simpler than BSplitView.
This could even make a good GCI task.. :)


--Alex

Other related posts: