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.
group_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "control.h"
6 #include "border_style.h"
7 #include "flat_style.h"
8 
10 namespace xtd {
12  namespace forms {
28  class forms_export_ group_box : public control {
29  public:
31  group_box();
32 
35  virtual forms::auto_size_mode auto_size_mode() const {return get_auto_size_mode();}
40 
41  drawing::size default_size() const override {return {200, 100};}
42 
43  protected:
44  forms::create_params create_params() const override;
45 
46  drawing::size measure_control() const override;
47 
48  void on_font_changed(const xtd::event_args& e) override;
49 
50  void on_resize(const xtd::event_args& e) override;
51 
52  void on_text_changed(const xtd::event_args& e) override;
53 
57  };
58  }
59 }
virtual forms::auto_size_mode auto_size_mode() const
Gets how the group_box behaves when its auto_size property is enabled.
Definition: group_box.h:35
flat_style
Specifies the appearance of a control.
Definition: flat_style.h:20
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
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:18
The appearance of the control is determined by the user's operating system.
Represents a Windows control that displays a frame around a group of controls with an optional captio...
Definition: group_box.h:28
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
Contains xtd::forms::flat_style enum class.
drawing::size default_size() const override
Gets the default size of the control.
Definition: group_box.h:41
Contains xtd::forms::control control.
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.