Draggable Splitter Bar (Split Pane)

4 posts / 0 new
Last post
remotenemesis
remotenemesis's picture
Offline
Last seen: 3 years 8 months 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: 1 year 10 months 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: 5 months 12 hours 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.

AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2

remotenemesis
remotenemesis's picture
Offline
Last seen: 3 years 8 months 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