Thread Rating:
  • 554 Vote(s) - 2.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
オブジェクトをデバイスのディスプレイ全体に簡単に広げる方法はありますか?
03-19-2013, 09:40 AM,
#1
オブジェクトをデバイスのディスプレイ全体に簡単に広げる方法はありますか?
Graphicクラスに配置したオブジェクト(VBoxなど)を
デバイスのディスプレイ全体に広げたいのですが、
簡単に出来る方法はありますか?

オブジェクトの幅や高さに 各モバイルのディプレイサイズを決めうち
したくありません。
Reply
03-19-2013, 09:43 AM,
#2
RE: オブジェクトをデバイスのディスプレイ全体に簡単に広げる方法はありますか?
幅や高さに{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"
                }
            }
        }
    }
    
  }
}
Reply

Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('873')