This Question is Answered

13 "helpful" answers available (3 pts)
4 Replies Last post: May 2, 2008 1:22 AM by URPradhan

how to Create frame seprator?

Apr 30, 2008 12:59 AM

Click to view RajivGu's profile Level 6 RajivGu 94 posts since
Apr 2, 2008

How to create frame seprator as we can see in the Curl Ide Editor pane(Frame) is seprated by Vertical bar from navigation pane(Frame).I have to program for this vertical bar seprating Editor pane and Navigation Pane?Any Suggetion will be appreciated.

Thanks

Rajiv

Click to view mgordon's profile Curl mgordon 48 posts since
Oct 17, 2007
1. Re: how to Create frame seprator? Apr 30, 2008 5:54 AM
I think PanedWindow could be what you are looking for.
Click to view RajivGu's profile Level 6 RajivGu 94 posts since
Apr 2, 2008
2. Re: how to Create frame seprator? Apr 30, 2008 7:24 AM
in response to: mgordon

Thanks for replying...

Can you give me some sample examples of Panedwindow.


Click to view Duke's profile Curl Duke 179 posts since
Oct 17, 2007
3. Re: how to Create frame seprator? Apr 30, 2008 4:50 PM
in response to: RajivGu
Here is some code showing the creation of some PanedWindows.

{define-proc {make-paned-window ...}:PanedWindow
    def pw1 = 
        {PanedWindow height = 2in, background = "cyan", {splice ...}}

    {pw1.add-pane
        {RadioFrame
            width = 1in,
            {VBox margin = 4px, spacing = 4px,
                {RadioButton label = "Monday"},
                {RadioButton label = "Tuesday"},
                {RadioButton label = "Wednesday"},
                {RadioButton label = "Thurs"}
            }
        }
    }
    {pw1.add-pane
        {RadioFrame
            width = 1in,
            {VBox margin = 4px, spacing = 4px,
                {RadioButton label = "Friday"},
                {RadioButton label = "Saturday"},
                {RadioButton label = "Sunday"}
            }
        }
    }
    {return pw1}
}

{make-paned-window sash-border-color = "red"}

{def pw =
    {PanedWindow
        orientation = Orientation.horizontal,
        background = "tan",
        height=5cm, width = 9cm
    }
}

{pw.add-pane {text Pane One is here.}}

{pw.add-pane {bold Here is Pane 2.}}

{value pw}
Click to view URPradhan's profile BlackBelt URPradhan 166 posts since
Mar 6, 2008
4. Re: how to Create frame seprator? May 2, 2008 2:09 AM
in response to: Duke
nested panedwindow like ...
Pane-1 Pane-2
Pane-3 Pane-4

For above paned window, declare 2 panedwindows, say pw1 and pw2.

Then pass pw2 as a variable to pw1.add-pane method.

//Thanx