GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseStaticControl.cpp
Go to the documentation of this file.
1#include "BaseStaticControl.h"
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 void BaseStaticControl::updateLocalization(wstring_view localizedText)
10 {
11 ITextOperations::setText(localizedText);
12 }
13
14 BaseStaticControl::BaseStaticControl(const wstring& staticControlName, const wstring& staticControlText, const utility::ComponentSettings& settings, BaseComposite* parent) :
16 (
17 standard_classes::staticControl,
18 staticControlName,
19 settings,
20 styles::StaticControlStyles(),
21 parent
22 ),
23 ITextOperations(handle, staticControlText)
24 {
25 this->removeBorder();
26 }
27
32
37
38 void BaseStaticControl::setText(string_view localizationKey)
39 {
40 this->setLocalizationKey(localizationKey);
41
42 ITextOperations::setText(localizationKey);
43 }
44}
Base class for all windows, controls, etc.
Base class for all windows that has children windows.
BaseStaticControl(const std::wstring &staticControlName, const std::wstring &staticControlText, const utility::ComponentSettings &settings, BaseComposite *parent)
virtual void updateLocalization(std::wstring_view localizedText) override
virtual void setText(std::string_view localizationKey) final override
virtual void setLocalizationKey(std::string_view localizationKey) final
void removeStyle(HWND handle, LONG_PTR styleToRemove)
Remove WinAPI style.
Definition Utility.cpp:31
void appendStyle(HWND handle, LONG_PTR newStyle)
Append WinAPI style.
Definition Utility.cpp:21