[plt-scheme] Draggable panel divider?

From: Carl Eastlund (carl.eastlund at gmail.com)
Date: Tue Apr 7 23:41:06 EDT 2009

On Tue, Apr 7, 2009 at 11:29 PM, alex mitchell <alexm at nus.edu.sg> wrote:
> Hi,
>
> I'd like to be able to create a window with two panels which can be resized
> using a "draggable panel divider", similar to the divider between the
> Interactions and Definitions panels in the main DrScheme window. Has anyone
> implemented something like this which can be easily reused, such as a
> subclass of panel% ?
>
> I suppose the code is there somewhere in the DrScheme IDE code, but I
> couldn't find it. Pointers to where the code is would also be helpful.

If you do a Help Desk search for "drag panel", you'll get the following hits:

panel:dragable-mixin  provided from framework
panel:dragable<%>  provided from framework
panel:horizontal-dragable%  provided from framework
panel:horizontal-dragable-mixin  provided from framework
panel:horizontal-dragable<%>  provided from framework
panel:vertical-dragable%  provided from framework
panel:vertical-dragable-mixin  provided from framework
panel:vertical-dragable<%>  provided from framework

You probably want either panel:horizontal-dragable% or
panel:vertical-dragable% for your purposes; here are the URLs to their
online documentation:

http://docs.plt-scheme.org/framework/Panel.html#(def._((lib._framework/main..ss)._panel~3ahorizontal-dragable~25))

http://docs.plt-scheme.org/framework/Panel.html#(def._((lib._framework/main..ss)._panel~3avertical-dragable~25))

Good luck!

-- 
Carl Eastlund


Posted on the users mailing list.