private:
bool inAutoSize;
+ watch(background) { if(editor) editor.background = background; };
+ watch(foreground) { if(editor) editor.foreground = foreground; };
+ //watch(selectionColor) { if(editor) editor.selectionColor = selectionColor; };
+ //watch(selectionText) { if(editor) editor.selectionText = selectionText; };
+ watch(opacity) { if(editor) editor.opacity = opacity; };
+
bool OnPostCreate()
{
// Right now for read-only DataBoxes the only reason we'd want to create an editor is for autoSize purposes, when using the default EditBox editor that supports it.
class_property(icon) = "<:ecere>controls/dropBox.png";
- watch(foreground)
- {
- listBox.foreground = foreground;
- };
- watch(background)
- {
- listBox.background = background;
- };
- watch(selectionColor)
- {
- listBox.selectionColor = selectionColor;
- };
- watch(selectionText)
- {
- listBox.selectionText = selectionText;
- };
+ watch(foreground) { listBox.foreground = foreground; if(editBox) editBox.foreground = foreground; };
+ watch(background) { listBox.background = background; if(editBox) editBox.background = background; };
+ watch(selectionColor) { listBox.selectionColor = selectionColor; if(editBox) editBox.selectionColor = selectionColor; };
+ watch(selectionText) { listBox.selectionText = selectionText; if(editBox) editBox.selectionText = selectionText; };
+ watch(opacity) { listBox.opacity = opacity; if(editBox) editBox.opacity = opacity; };
public:
property bool activeStipple
this, textHorzScroll = true, borderStyle = 0;
anchor = Anchor { left = 0, top = 0, right = BTN_WIDTH, bottom = 0 };
// visible = false, modifyVirtualArea = false;
+ foreground = foreground;
+ background = background;
+ selectionColor = selectionColor;
+ selectionText = selectionText;
};
incref editBox;
editBox.Create();
borderStyle = deep;
clientSize = { 64, 18 };
- watch(background) { editBox.background = background; };
- watch(foreground) { editBox.foreground = foreground; };
- watch(opacity) { editBox.opacity = opacity; };
+ watch(background) { editBox.background = background; };
+ watch(foreground) { editBox.foreground = foreground; };
+ watch(selectionColor) { editBox.selectionColor = selectionColor; };
+ watch(selectionText) { editBox.selectionText = selectionText; };
+ watch(opacity) { editBox.opacity = opacity; };
#if defined(__WIN32__)
PathBox()
virtual bool OnPrepareBrowseDir(char ** directory);
virtual bool OnBrowsedDir(char ** directory);
- watch(foreground) { list.foreground = foreground; };
- watch(background) { list.background = background; };
+ watch(foreground) { list.foreground = foreground; };
+ watch(background) { list.background = background; };
+ //watch(selectionColor) { list.selectionColor = selectionColor; };
+ //watch(selectionText) { list.selectionText = selectionText; };
+ watch(opacity) { list.opacity = opacity; };
property Array<String> strings
{