SWT/CoolBarの使い方
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
***CoolBar [#w0bee67a]
#ref(02.png)
CoolBarとはマウスでドラッグ可能なツールバーです。他のウィ...
#ref(01.png)
***スニペット [#w1e29d2b]
// CoolBarを作成
final CoolBar coolBar = new CoolBar(shell, SWT.NONE);
coolBar.setLayoutData(new GridData(GridData.FILL_HORIZON...
{
final CoolItem coolItem1 = new CoolItem(coolBar, SWT.P...
coolItem1.setText("coolItemの1");
{
final ToolBar toolBar = new ToolBar(coolBar, SWT.FLA...
coolItem1.setControl(toolBar);
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム1-1");
}
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム1-2");
}
Point point = toolBar.computeSize(SWT.DEFAULT, SWT.D...
point = coolItem1.computeSize(point.x, point.y);
coolItem1.setSize(point);
}
}
{
final CoolItem coolItem2 = new CoolItem(coolBar, SWT.P...
coolItem2.setText("coolItemの2");
{
toolBar = new ToolBar(coolBar, SWT.FLAT);
coolItem2.setControl(toolBar);
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム2-1");
}
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム2-2");
}
Point point = toolBar.computeSize(SWT.DEFAULT, SWT.D...
point = coolItem2.computeSize(point.x, point.y);
coolItem2.setSize(point);
}
}
----
この記事は
#vote(おもしろかった[6],そうでもない[3])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
***CoolBar [#w0bee67a]
#ref(02.png)
CoolBarとはマウスでドラッグ可能なツールバーです。他のウィ...
#ref(01.png)
***スニペット [#w1e29d2b]
// CoolBarを作成
final CoolBar coolBar = new CoolBar(shell, SWT.NONE);
coolBar.setLayoutData(new GridData(GridData.FILL_HORIZON...
{
final CoolItem coolItem1 = new CoolItem(coolBar, SWT.P...
coolItem1.setText("coolItemの1");
{
final ToolBar toolBar = new ToolBar(coolBar, SWT.FLA...
coolItem1.setControl(toolBar);
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム1-1");
}
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム1-2");
}
Point point = toolBar.computeSize(SWT.DEFAULT, SWT.D...
point = coolItem1.computeSize(point.x, point.y);
coolItem1.setSize(point);
}
}
{
final CoolItem coolItem2 = new CoolItem(coolBar, SWT.P...
coolItem2.setText("coolItemの2");
{
toolBar = new ToolBar(coolBar, SWT.FLAT);
coolItem2.setControl(toolBar);
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム2-1");
}
{
final ToolItem toolItem = new ToolItem(toolBar, SW...
toolItem.setText("アイテム2-2");
}
Point point = toolBar.computeSize(SWT.DEFAULT, SWT.D...
point = coolItem2.computeSize(point.x, point.y);
coolItem2.setSize(point);
}
}
----
この記事は
#vote(おもしろかった[6],そうでもない[3])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: