Dialog Editor edits
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -221,6 +221,19 @@ bool wxResourceTableWithSaving::SaveResource(ostream& stream, wxItemResource *it
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxRadioButton")
|
||||
{
|
||||
GenerateRadioButtonStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxRadioButton, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
stream << ", " << item->GetValue1();
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxStaticBox")
|
||||
{
|
||||
GenerateGroupBoxStyleString(item->GetStyle(), styleBuf);
|
||||
@@ -618,6 +631,15 @@ void wxResourceTableWithSaving::GenerateCheckBoxStyleString(long windowStyle, ch
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateRadioButtonStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateListBoxStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
|
Reference in New Issue
Block a user