1.

What Is The Difference Between A Wxframe And A Wxwindow? When Do I Want To Use Each One?

Answer»

The terminology is a bit confusing. a wxFrame is what most folks think of as a Window: a box on the screen that holds your application, etc. It can be re-sized, moved, etc with the mouse by the window manager of the SYSTEM.

A wxWindow is the basic unit from which all the controls, etc. are built. It is a rectangle on the screen that captures mouse CLICKS, draws itself etc. a wxWindow will almost always be put into a FRAME or other window.

You want to use a frame to create an independent box on the screen to house some part of your application. You want to use a wxWindow as the basis for a custom control of your own DESIGN. All the built-in controls are derived from a wxWindow already.

The terminology is a bit confusing. a wxFrame is what most folks think of as a Window: a box on the screen that holds your application, etc. It can be re-sized, moved, etc with the mouse by the window manager of the system.

A wxWindow is the basic unit from which all the controls, etc. are built. It is a rectangle on the screen that captures mouse clicks, draws itself etc. a wxWindow will almost always be put into a Frame or other window.

You want to use a frame to create an independent box on the screen to house some part of your application. You want to use a wxWindow as the basis for a custom control of your own design. All the built-in controls are derived from a wxWindow already.



Discussion

No Comment Found