Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.   include("../layout.js");
  3.   my_test_project.layout.main = function() {
  4.     return uki({
  5.       view: "HSplitPane",
  6.       rect: "1000 600",
  7.       anchors: "left top right bottom",
  8.       handlePosition: 200,
  9.       rightMin: 500,
  10.       handleWidth: 1,
  11.       id: "top",
  12.       throttle: 42,
  13.       leftPane: {
  14.         background: "grey"
  15.       },
  16.       rightChildViews: {
  17.         view: "HSplitPane",
  18.         rect: "799 600",
  19.         anchors: "left top right bottom",
  20.         id: "second",
  21.         handlePosition: 300,
  22.         autogrowRight: true,
  23.         autogrowLeft: false,
  24.         leftMin: 200,
  25.         rightMin: 300,
  26.         handleWidth: 1,
  27.         leftPane: {
  28.           background: "blue",
  29.           childViews: [
  30.             {
  31.               view: "Button",
  32.               rect: "10 566 280 24",
  33.               anchors: "bottom left right",
  34.               text: "middle pane",
  35.               focusable: false
  36.             }
  37.           ]
  38.         },
  39.         rightChildViews: [
  40.           {
  41.             view: "VSplitPane",
  42.             rect: "498 600",
  43.             anchors: "left top right bottom",
  44.             topChildViews: [
  45.               {
  46.                 view: "Button",
  47.                 rect: "10 10 280 24",
  48.                 anchors: "top left",
  49.                 text: "top pane 1"
  50.               }, {
  51.                 view: "Button",
  52.                 rect: "209 160 280 24",
  53.                 anchors: "bottom right",
  54.                 text: "top pane 2"
  55.               }
  56.             ],
  57.             bottomPane: {
  58.               background: "#FFF",
  59.               childViews: [
  60.                 {
  61.                   view: "Box",
  62.                   rect: "0 0 499 40",
  63.                   anchors: "top right left",
  64.                   background: "cssBox(background:#EDF3FE;border-bottom:2px solid #999)"
  65.                 }, {
  66.                   view: "Slider",
  67.                   rect: "10 50 473 24",
  68.                   anchors: "top right left"
  69.                 }, {
  70.                   view: "Label",
  71.                   rect: "10 80 479 300",
  72.                   anchors: "top left right bottom",
  73.                   multiline: true,
  74.                   html: "Sample content oooo ",
  75.                   id: "workpane"
  76.                 }
  77.               ]
  78.             }
  79.           }
  80.         ]
  81.       }
  82.     });
  83.   };
  84. }).call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement