[plt-scheme] Draggable panel divider?

From: alex mitchell (alexm at nus.edu.sg)
Date: Tue Apr 7 23:45:10 EDT 2009

That's perfect, thanks! Sorry for the spam, I must have missed this...

Alex


On 4/8/09 11:41 AM, "Carl Eastlund" <carl.eastlund at gmail.com> wrote:

> 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..s
> s)._panel~3ahorizontal-dragable~25))
> 
> http://docs.plt-scheme.org/framework/Panel.html#(def._((lib._framework/main..s
> s)._panel~3avertical-dragable~25))
> 
> Good luck!



Posted on the users mailing list.