xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
command_link_button.h
Go to the documentation of this file.
1
4#pragma once
5#include "button_base.h"
6#include "dialog_result.h"
7#include "ibutton_control.h"
8#include "timer.h"
9
11namespace xtd {
13 namespace forms {
24 public:
28
31 virtual forms::auto_size_mode auto_size_mode() const {return auto_size_mode_;}
35
40 virtual control& texts(const xtd::ustring& text, const xtd::ustring& supplementary_text) {return this->text(ustring::format("{}{}{}", text, environment::new_line(), supplementary_text));}
41
42 drawing::size default_size() const override {return {200, 60};}
43
45
46 protected:
47 forms::create_params create_params() const override;
48
49 void on_handle_created(const event_args& e) override;
50
51 /*
55 void wnd_proc(message& message) override;
56 */
57
59 forms::dialog_result dialog_result_ = forms::dialog_result::none;
61
62 private:
63 //void wm_click(message& message);
64 //void wm_mouse_up(message& message);
65 };
66 }
67}
Contains xtd::forms::button_base class.
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Implements the basic functionality common to button controls.
Definition: button_base.h:26
Defines the base class for controls, which are components with visual representation.
Definition: control.h:67
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Contains xtd::forms::dialog_result enum class.
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:39
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::ibutton_control interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::forms::timer component.