Draggable Splitter Bar (Split Pane)

4 posts / 0 new
Last post
remotenemesis
remotenemesis's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 2020-06-24 07:53
Draggable Splitter Bar (Split Pane)

Hey everyone,

I have a horizontal layout with (right now) two listbrowsers and I want to place a draggable splitter bar between these widgets, like in the Workbench Find Window or the SDK Browser. I've searched the SDK docs without luck so far. Can anyone point me in the right direction? Is this supported?

Thanks!

Rigo
Rigo's picture
Offline
Last seen: 2 days 16 hours ago
Joined: 2011-01-24 21:55
Re: Draggable Splitter Bar (Split Pane)

Try putting the listbrowsers in their own layouts, and put the weighbar between them.

Simon

trixie
trixie's picture
Offline
Last seen: 2 weeks 4 days ago
Joined: 2011-02-03 13:58
Re: Draggable Splitter Bar (Split Pane)

@remotenemesis

You don't need to have the listbrowsers in separate layouts.

  • Create a horizontal layout object, then
  • LAYOUT_AddChild the first listbrowser, followed by
  • LAYOUT_WeightBar, TRUE,
  • LAYOUT_AddChild the second listbrowser.
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition Author of WordNet for OS4
remotenemesis
remotenemesis's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 2020-06-24 07:53
Re: Draggable Splitter Bar (Split Pane)

Perfect! Thanks, that's exactly what I wanted.

Log in or register to post comments