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 > grid拘束プロパティ

grid拘束プロパティ

grid拘束プロパティの説明.

呼び出し手順

constraints = createConstraints("grid")

引数

constraints

作成された拘束.

説明

この関数は, uicontrols constraints属性を 設定するグリッド拘束を作成します.

//Create a figure with a grid layout 
f = figure( ...
"dockable"        , "off",...
"infobar_visible" , "off",...
"toolbar"         , "none",...
"menubar_visible" , "off",...
"menubar"         , "none",...
"default_axes"    , "off",...
"layout"          , "grid",...
"visible"         , "on");
//Set the grid to be 2 by 3 elements
lay_opt = createLayoutOptions("grid", [2,3]);
set(f,"layout_options",lay_opt);
//Insert uicontrols on the grid
//Each uicontrol is inserted from left to right
//and top to bottom
c = createConstraints("grid"); //Create the constraint for nested uicontrols
u_grid1 = uicontrol(f,...
"style", "frame",...
"backgroundcolor", [1 0 0],...
"constraints", c);
sleep(500);
u_grid2 = uicontrol(f,...
"style", "frame",...
"backgroundcolor", [0 1 0],...
"constraints", c);
sleep(500);
u_grid3 = uicontrol(f,...
"style", "frame",...
"backgroundcolor", [0 0 1],...
"constraints", c);
sleep(500);
u_grid4 = uicontrol(f,...
"style", "frame",...
"backgroundcolor", [1 1 0],...
"constraints", c);
sleep(500);
u_grid5 = uicontrol(f,...
"style", "frame",...
"backgroundcolor", [1 0 1],...
"constraints", c);
sleep(500);
u_grid6 = uicontrol(f,...
"style", "frame",...
"backgroundcolor", [0 1 1],...
"constraints", c);

参照

  • layout — uicontrolおよびfigure用の異なる配置および拘束の説明.
  • createConstraints — uicontrol用の配置拘束構造体を作成.
  • 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