Dialog Editor bug fixes, several other small ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -960,26 +960,31 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, wxExpr *expr)
|
||||
}
|
||||
controlItem->SetStringValues(stringList);
|
||||
count ++;
|
||||
|
||||
// This is now obsolete: it's in the window style.
|
||||
// Check for wxSINGLE/wxMULTIPLE
|
||||
wxExpr *mult = (wxExpr *) NULL;
|
||||
/*
|
||||
controlItem->SetValue1(wxLB_SINGLE);
|
||||
*/
|
||||
if ((mult = expr->Nth(count)) && ((mult->Type() == PrologString)||(mult->Type() == PrologWord)))
|
||||
{
|
||||
/*
|
||||
wxString m(mult->StringValue());
|
||||
if (m == "wxMULTIPLE")
|
||||
if (m == "wxLB_MULTIPLE")
|
||||
controlItem->SetValue1(wxLB_MULTIPLE);
|
||||
else if (m == "wxEXTENDED")
|
||||
else if (m == "wxLB_EXTENDED")
|
||||
controlItem->SetValue1(wxLB_EXTENDED);
|
||||
*/
|
||||
// Ignore the value
|
||||
count ++;
|
||||
if (expr->Nth(count) && expr->Nth(count)->Type() == PrologList)
|
||||
{
|
||||
// controlItem->SetLabelFont(wxResourceInterpretFontSpec(expr->Nth(count)));
|
||||
}
|
||||
if (expr->Nth(count) && expr->Nth(count)->Type() == PrologList)
|
||||
{
|
||||
// controlItem->SetLabelFont(wxResourceInterpretFontSpec(expr->Nth(count)));
|
||||
count ++;
|
||||
if (expr->Nth(count) && expr->Nth(count)->Type() == PrologList)
|
||||
controlItem->SetFont(wxResourceInterpretFontSpec(expr->Nth(count)));
|
||||
}
|
||||
}
|
||||
if (expr->Nth(count) && expr->Nth(count)->Type() == PrologList)
|
||||
controlItem->SetFont(wxResourceInterpretFontSpec(expr->Nth(count)));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (controlType == "wxChoice")
|
||||
|
Reference in New Issue
Block a user