Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> GUI > Layouts > border配置オプションプロパティ

border配置オプションプロパティ

border配置オプションプロパティの説明.

呼び出し手順

layout_options = createLayoutOptions("border")
layout_options = createLayoutOptions("border", padding)

引数

padding

[pad_x, pad_y] 1行2列のdouble行列, デフォルトは[0,0].

境界配置の要素間のパディング(単位:ピクセル).

layout_options

作成したlayout_optionsオブジェクト

説明

この関数は, uicontrols layout_options属性を設定する 境界配置オプションを作成します.

//Creating a figure with the border layout with 50 pixel padding in width and 10 in height 
f = figure( ...
"dockable"        , "off",...
"infobar_visible" , "off",...
"toolbar"         , "none",...
"menubar_visible" , "off",...
"menubar"         , "none",...
"default_axes"    , "off",...
"layout"          , "border",...
"layout_options", createLayoutOptions("border", [50,10]),...
"visible"         , "on");
 c = createConstraints("border", "top", [50,10]);
 //First frame is on top with 10 pixel in height
 u_grid1 = uicontrol(f,...
 "style", "frame",...
 "backgroundcolor", [1 0 0], ...
 "constraints", c);
 sleep(500);
 c.position = "left";
 u_grid2 = uicontrol(f,...
 "style", "frame",...
 "backgroundcolor", [0 1 0], ...
 "constraints", c);
 sleep(500);
 c.position = "center";
 u_grid3 = uicontrol(f,...
 "style", "frame",...
 "backgroundcolor", [0 0 1], ...
 "constraints", c);
 sleep(500);
 c.preferredsize = [10, 100];
 c.position = "right";
 u_grid4 = uicontrol(f,...
 "style", "frame",...
 "backgroundcolor", [1 1 0], ...
 "constraints", c);
 sleep(500);
 c.position = "bottom";
 u_grid5 = uicontrol(f,...
 "style", "frame",...
 "backgroundcolor", [1 0 1], ...
 "constraints", c);

参照

  • layout — uicontrolおよびfigure用の異なる配置および拘束の説明.
  • createLayoutOptions — frame uicontrolまたはfigureの配置オプションを作成
  • uicontrol — グラフィックユーザーインターフェイスオブジェクトを作成
  • uicontrol_properties — uicontrolプロパティの説明.

履歴

バージョン記述
5.5.0 関数 createBorder が導入されました.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:25:04 CEST 2015