WindowFlags can be given on Choice creation
This commit is contained in:
+2
-2
@@ -22,8 +22,8 @@
|
|||||||
#include "theme.h"
|
#include "theme.h"
|
||||||
|
|
||||||
Choice::Choice(FormGroup * parent, const rect_t & rect, const char * values, int16_t vmin, int16_t vmax,
|
Choice::Choice(FormGroup * parent, const rect_t & rect, const char * values, int16_t vmin, int16_t vmax,
|
||||||
std::function<int16_t()> getValue, std::function<void(int16_t)> setValue) :
|
std::function<int16_t()> getValue, std::function<void(int16_t)> setValue, WindowFlags windowFlags) :
|
||||||
ChoiceBase(parent, rect),
|
ChoiceBase(parent, rect, CHOICE_TYPE_DROPOWN, windowFlags),
|
||||||
values(values),
|
values(values),
|
||||||
vmin(vmin),
|
vmin(vmin),
|
||||||
vmax(vmax),
|
vmax(vmax),
|
||||||
|
|||||||
+3
-3
@@ -29,8 +29,8 @@ enum ChoiceType {
|
|||||||
|
|
||||||
class ChoiceBase : public FormField {
|
class ChoiceBase : public FormField {
|
||||||
public:
|
public:
|
||||||
ChoiceBase(FormGroup * parent, const rect_t & rect, ChoiceType type = CHOICE_TYPE_DROPOWN):
|
ChoiceBase(FormGroup * parent, const rect_t & rect, ChoiceType type = CHOICE_TYPE_DROPOWN, WindowFlags windowFlags = 0):
|
||||||
FormField(parent, rect),
|
FormField(parent, rect, windowFlags),
|
||||||
type(type)
|
type(type)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -46,7 +46,7 @@ class ChoiceBase : public FormField {
|
|||||||
|
|
||||||
class Choice : public ChoiceBase {
|
class Choice : public ChoiceBase {
|
||||||
public:
|
public:
|
||||||
Choice(FormGroup * parent, const rect_t & rect, const char * values, int16_t vmin, int16_t vmax, std::function<int16_t()> getValue, std::function<void(int16_t)> setValue = nullptr);
|
Choice(FormGroup * parent, const rect_t & rect, const char * values, int16_t vmin, int16_t vmax, std::function<int16_t()> getValue, std::function<void(int16_t)> setValue = nullptr, WindowFlags windowFlags = 0);
|
||||||
|
|
||||||
#if defined(DEBUG_WINDOWS)
|
#if defined(DEBUG_WINDOWS)
|
||||||
std::string getName() override
|
std::string getName() override
|
||||||
|
|||||||
Reference in New Issue
Block a user