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.
command_link_button.h
Go to the documentation of this file.
1 #pragma once
5 #include "button_base.h"
6 #include "dialog_result.h"
7 #include "ibutton_control.h"
8 #include "timer.h"
9 
11 namespace xtd {
13  namespace forms {
23  class forms_export_ command_link_button : public button_base {
24  public:
26 
32 
34 
38  virtual forms::auto_size_mode auto_size_mode() const {return get_auto_size_mode();}
42 
43  drawing::size default_size() const override {return {200, 60};}
44 
49  virtual control& texts(const xtd::ustring& text, const xtd::ustring& supplementary_text) {return this->text(ustring::format("{}{}{}", text, environment::new_line(), supplementary_text));}
51 
52  protected:
54 
56  forms::create_params create_params() const override;
57  drawing::size measure_control() const override;
58  void on_handle_created(const event_args& e) override;
59 
60  /*
64  void wnd_proc(message& message) override;
65  */
67 
68  private:
69  //void wm_click(message& message);
70  //void wm_mouse_up(message& message);
71  };
72  }
73 }
Contains xtd::forms::button_base class.
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
Implements the basic functionality common to button controls.
Definition: button_base.h:26
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
Contains xtd::forms::timer component.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Contains xtd::forms::dialog_result enum class.
static xtd::ustring new_line()
Gets the newline string defined for this environment.
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
static ustring format(const ustring &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition: ustring.h:700
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::ibutton_control interface.