Curl Global Community

Full Version: オブジェクトをデバイスのディスプレイ全体に簡単に広げる方法はありますか?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Graphicクラスに配置したオブジェクト(VBoxなど)を
デバイスのディスプレイ全体に広げたいのですが、
簡単に出来る方法はありますか?

オブジェクトの幅や高さに 各モバイルのディプレイサイズを決めうち
したくありません。
幅や高さに{make-elastic preferred-size = 1m}と書くのが簡単です。
画面全体に広がります。

Code:
|| 画面クラス
{define-class public MySampleGraphic
  {inherits Frame}
  {constructor public {default}
    {construct-super
        {HBox
            valign = "center",
            {VBox
                halign = "center",
                width = {make-elastic preferred-size = 1m},
                height = {make-elastic preferred-size = 1m},
                background = "aqua",
                {CommandButton
                    name = "cb1"
                }
            }
        }
    }
    
  }
}