xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
tab_page.h
Go to the documentation of this file.
1
4#pragma once
5#include "panel.h"
6
8namespace xtd {
10 namespace forms {
23 class forms_export_ tab_page : public panel {
24 public:
27
28 using panel::auto_scroll;
32 scrollable_control& auto_scroll(bool auto_scroll) override;
33
39 virtual int32_t image_index() const {return image_index_;}
45 virtual tab_page& image_index(int32_t value);
46
47 using panel::text;
51 control& text(const xtd::ustring& text) override;
52
53 void destroy_handle() override;
54
55 protected:
56 forms::create_params create_params() const override;
57
58 void on_handle_created(const event_args& e) override;
59
60 private:
61 int32_t image_index_ = -1;
62 };
63 }
64}
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:67
Used to group collections of controls.
Definition panel.h:21
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:18
Represents a single tab page in a tab_control.
Definition tab_page.h:23
virtual int32_t image_index() const
Gets the image list index value of the image displayed on the tab_page control.
Definition tab_page.h:39
forms::create_params create_params() const override
Gets the required creation parameters when the control handle is created.
control & text(const xtd::ustring &text) override
Sets the text associated with this control.
scrollable_control & auto_scroll(bool auto_scroll) override
Sets a value indicating whether the container enables the user to scroll to any controls placed outsi...
tab_page()
Initializes a new instance of the tab_page class.
virtual tab_page & image_index(int32_t value)
Sets the image list index value of the image displayed on the tab_page control.
void destroy_handle() override
Destroys the handle associated with the control.
void on_handle_created(const event_args &e) override
Raises the control::handle_created event.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
#define forms_export_
Define shared library export.
Definition forms_export.h:13
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::panel container.