}
property Menu parent { set { if(value) value.AddSubMenu(this); } };
- property const char * text { set { text = (char *)value; /* CopyString(value);*/ } };
+ property const char * text { set { if(copyText) delete text; text = copyText ? CopyString(value) : (char *)value; } };
property Key hotKey { set { hotKey = value; } };
property bool hasMargin { set { hasMargin = value; } };
+ property bool copyText { set { copyText = value; } };
private:
OldList items;
int itemCount;
bool mergeClients;
bool hasMargin;
+ bool copyText;
Menu()
{
~Menu()
{
+ if(copyText) delete text;
Clean(null);
Clear();
}
}
master.Update(null);
}
+ incref window;
+ window.master.Activate();
result = window.Destroy(0);
+ delete window;
// This looks like a hack...
RestoreCaret();
return result;