xtd 0.2.0
popup_panel.h
Go to the documentation of this file.
1 #pragma once
5 #include "panel.h"
6 
8 namespace xtd {
10  namespace forms {
27  class forms_export_ popup_panel : public panel {
28  struct data;
29 
30  public:
32 
35  popup_panel();
37 
39 
43  bool ignore_mouse_messages() const noexcept;
47  popup_panel& ignore_mouse_messages(bool value);
49 
51 
53  //using control::create;
59  static popup_panel create(const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
66  static popup_panel create(const control& parent, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
68 
69  protected:
71 
73  forms::create_params create_params() const noexcept override;
75 
77 
79  void on_handle_created(const event_args& e) override;
80  void on_layout(const event_args& e) override;
81  void on_region_changed(const event_args& e) override;
82  void wnd_proc(message& message) override;
84 
85  private:
86  void wm_show(message& message);
87 
88  std::shared_ptr<data> data_;
89  };
90  }
91 }
Contains xtd::forms::panel container.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Used to group collections of controls.
Definition: panel.h:30
Encapsulates the information needed when creating a control.
Definition: create_params.h:27
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Implements a Windows message.
Definition: message.h:26
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static const ustring empty_string
Represents the empty string.
Definition: ustring.h:53
Specifies that both the x and y coordinates of the control are defined.
Represents a special type of panel container that can be used for context menus, combo_box popups and...
Definition: popup_panel.h:27
size_t size
Represents a size of any object in bytes.
Definition: types.h:195