Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - 日本語


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

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

呼び出し手順

layout_options = createLayoutOptions("grid")
layout_options = createLayoutOptions("grid", size)
layout_options = createLayoutOptions("grid", size, padding)

引数

size

1×2 vector [nRows, nCols]: The numbers of rows and columns of cells (not of pixels) of the grid. [0,0] by default.

グリッドの行または列上の要素数を規定しない nRows または nCols のどちらかにの値を -1 にする.

padding

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

グリッド要素間のパディング(単位:ピクセル).

layout_options

作成した layout_options.

説明

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

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

履歴

バージョン記述
5.5.0 関数 createBorder が導入されました.
Report an issue
<< grid拘束プロパティ Layouts gridbag拘束プロパティ >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:43:11 CEST 2023