xtd 0.2.0
Loading...
Searching...
No Matches
popup_panel.h
Go to the documentation of this file.
1
4#pragma once
5#include "panel.h"
6
8namespace xtd {
10 namespace forms {
28 struct data;
29
30 public:
32
37
39
43 bool ignore_mouse_messages() const noexcept;
47 popup_panel& ignore_mouse_messages(bool value);
49
51
55 static popup_panel create();
59 static popup_panel create(const drawing::point& location);
64 static popup_panel create(const drawing::point& location, const drawing::size& size);
70 static popup_panel create(const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
74 static popup_panel create(const control& parent);
79 static popup_panel create(const control& parent, const drawing::point& location);
85 static popup_panel create(const control& parent, const drawing::point& location, const drawing::size& size);
92 static popup_panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
94
95 protected:
97
99 forms::create_params create_params() const noexcept override;
101
103
109 std::unique_ptr<xtd::object> clone() const override;
110
111 void on_handle_created(const event_args& e) override;
112 void on_layout(const event_args& e) override;
113 void on_region_changed(const event_args& e) override;
114 void wnd_proc(message& message) override;
116
117 private:
118 void wm_show(message& message);
119
120 std::shared_ptr<data> data_;
121 };
122 }
123}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Encapsulates the information needed when creating a control.
Definition create_params.h:27
Implements a Windows message.
Definition message.h:26
Used to group collections of controls.
Definition panel.h:30
Represents a special type of panel container that can be used for context menus, combo_box popups and...
Definition popup_panel.h:27
bool ignore_mouse_messages() const noexcept
Gets ignore mouse messages.
popup_panel()
Initializes a new instance of the popup_panel class.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define forms_export_
Define shared library export.
Definition forms_export.h:13
size_t size
Represents a size of any object in bytes.
Definition types.h:197
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::panel class.