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


border拘束プロパティ

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

呼び出し手順

constraints = createConstraints("border")
constraints = createConstraints("border", position)
constraints = createConstraints("border", position, preferredsize)

引数

position

文字列

"top" | "left" | {"center"} | "right" |"bottom"

配置における要素の位置

preferredsize

[width, heigth] doubleの1行2列行列, デフォルトは [-1, -1].

拘束しない場合, 配置における要素の推奨の width または heigth (単位:ピクセル).

constraints

作成された拘束.

説明

この関数は, uicontrolのconstraints属性 を設定する境界拘束を作成します.

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

履歴

バージョン記述
5.5.0 関数createBorderが導入されました.
Report an issue
<< Layouts Layouts border配置オプションプロパティ >>

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 Jun 17 17:54:19 CEST 2024