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 > difference > ControlとComponentの違い

Posted at
動作環境
Rad Studio 10.2 Tokyo Update 2

Visual StudioでWindow上に配置するものは「Control」と認識している。

Rad Studioではそれは「Component」と認識していたが、Tokyoを使い始めて「Control」の表記が気になった。

ControlとComponentの違いについて調べたところ、以下が分かりやすかった。

TComponent is the common ancestor of all component objects in Delphi.
TControl is the abstract base class for all visual components.
Everything that goes into the component palette is a Component.
Everything that goes into the component AND is something that the USER of
the program can control by using mouse or keyboard is a Control.
...

以下のように認識した。

  • TTimerはComponent
  • TEdit, TLabelなどはControl (Componentと呼んでも間違いではない)
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?