mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-09 03:24:59 -06:00
CtrlLib: DropList::Add(... enable);
git-svn-id: svn://ultimatepp.org/upp/trunk@9176 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2a5946e1f0
commit
29da5555e4
6 changed files with 65 additions and 40 deletions
|
|
@ -118,10 +118,12 @@ void DropList::Clear() {
|
|||
Update();
|
||||
}
|
||||
|
||||
DropList& DropList::Add(const Value& _key, const Value& text)
|
||||
DropList& DropList::Add(const Value& _key, const Value& text, bool enable)
|
||||
{
|
||||
key.Add(_key);
|
||||
list.Add(text);
|
||||
if(!enable)
|
||||
list.SetLineCy(list.GetCount() - 1, 0);
|
||||
list.Refresh();
|
||||
EnableDrop();
|
||||
Sync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue