xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Go to the documentation of this file.
1 #pragma once
5 #include "container_control.h"
6 #include "border_style.h"
9 namespace xtd {
11  namespace forms {
21  class forms_export_ user_control : public container_control {
22  public:
24  user_control();
28  virtual forms::auto_size_mode auto_size_mode() const {return get_auto_size_mode();}
37  virtual forms::border_style border_style() const {return border_style_;}
44  drawing::size default_size() const override {return {150, 150};}
46  protected:
47  forms::create_params create_params() const override;
49  void on_layout(const event_args& e) override;
54  };
55  }
56 }
Provides focus-management functionality for controls that can function as a container for other contr...
Definition: container_control.h:21
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents a standard Windows user control.
Definition: user_control.h:21
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:18
virtual forms::border_style border_style() const
Gets the border style for the control.
Definition: user_control.h:37
Contains xtd::forms::container_control class.
Specifies the border style for a control.
Definition: border_style.h:18
virtual forms::auto_size_mode auto_size_mode() const
Gets the mode by which the user_control automatically resizes itself.
Definition: user_control.h:28
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::border_style enum class.
drawing::size default_size() const override
Gets the default size of the control.
Definition: user_control.h:44