0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ builder XE4, 10.2 Tokyo > form design > Formの位置を指定する

Last updated at Posted at 2015-12-14
動作確認
C++ Builder XE4
Rad Studio 10.2 Tokyo Update 2 (追記: 2017/12/27)

指定の場所にフォームを表示したい場合。

  • Position: poDefaultにする
    • Position: poDesignedにする
    • poDefaultの場合、フォームの幅、高さが自動的に変わる場合がある
  • FormShow()で以下のようなコードを実行する
Unit1.cpp
this->Top = 100;
this->Left = 0;

Positions: poScreenCenter 指定では失敗した。

二画面構成でメイン画面の左にあわせたい場合は以下のようにする。

Unit1.cpp
	int leftPos = Screen->Monitors[0]->Left;

	this->Top = 0;
	this->Left = leftPos;
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?