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 {
30 struct data;
31
32 public:
34
39
41
45 bool ignore_mouse_messages() const noexcept;
49 popup_panel& ignore_mouse_messages(bool value);
51
53
57 static popup_panel create();
61 static popup_panel create(const drawing::point& location);
66 static popup_panel create(const drawing::point& location, const drawing::size& size);
72 static popup_panel create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
76 static popup_panel create(const control& parent);
81 static popup_panel create(const control& parent, const drawing::point& location);
87 static popup_panel create(const control& parent, const drawing::point& location, const drawing::size& size);
94 static popup_panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
96
97 protected:
99
101 forms::create_params create_params() const noexcept override;
103
105
111 xtd::uptr<xtd::object> clone() const override;
112
113 void on_handle_created(const event_args& e) override;
114 void on_layout(const event_args& e) override;
115 void on_region_changed(const event_args& e) override;
116 void wnd_proc(message& message) override;
118
119 private:
120 void wm_show(message& message);
121
122 xtd::sptr<data> data_;
123 };
124 }
125}
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:81
Encapsulates the information needed when creating a control.
Definition create_params.h:29
Implements a Windows message.
Definition message.h:28
Used to group collections of controls.
Definition panel.h:32
Represents a special type of panel container that can be used for context menus, combo_box popups and...
Definition popup_panel.h:29
bool ignore_mouse_messages() const noexcept
Gets ignore mouse messages.
popup_panel()
Initializes a new instance of the popup_panel class.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
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.