~~Title: Panes Container PG~~ {{page>index}} ---- ===== Panes Container ===== {{ :container_panes_tree.png }}{{ :container_panes.png }} A panes widget adds a draggable bar between two sections of content. The sections are resized when the bar is dragged. === Table of Contents === * [[/develop/legacy/program_guide/containers/panes#Creating_Panes|Creating Panes]] * [[/develop/legacy/program_guide/containers/panes#Adding Content to the Panes|Adding Content to the Panes]] * [[/develop/legacy/program_guide/containers/panes#Setting_Panes_Options|Setting Panes Options]] * [[/develop/legacy/program_guide/containers/panes#Signals|Signals]] === Related Info === * [[https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/group__Panes.html|Panes Container API]] * [[/develop/legacy/tutorial/panes_tutorial|Panes Tutorial]] * [[https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/panes_example.html|A Panes Example ]] ==== Creating a Panes ==== To create a panes widget, use the ''elm_panes_add()'' function: Evas_Object *panes = elm_panes_add(parent); ==== Adding Content to the Panes ==== To add content to the panes, use the ''elm_object_part_content_set()'' function. The following code adds an object to the left pane: elm_object_part_content_set(panes, "left", obj); Here, the Default content parts of the panes widget that you can use are: * ''"left"'' - A leftside content of the panes * ''"right"'' - A rightside content of the panes * ''"top"'' - A top content of the vertical panes * ''"bottom"'' - A bottom content of the vertical panes If panes are displayed vertically, left content will be displayed on top. ==== Setting Panes Options ==== To set the orientation of the panes, use the ''elm_panes_horizontal_set()'' function. To set the size of the panes, use the ''elm_panes_content_left_size_set()'' and ''elm_panes_content_right_size_set()'' functions. ==== Signals ==== The panes widget emits the following signals: * ''"press"'': The panes widget has been pressed (but the press has not been released yet). * ''"unpress"'': The press has been released. * ''"clicked"'': The panes widget has been clicked. * ''"clicked,double"'': The panes widget has been double-clicked. \\ //**__[[https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/panes_example.html|A Panes Example ]]__**// \\ ---- {{page>index}}