paritially implemented MultipleChoice viewer/editor

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@222 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-03-21 18:04:09 +00:00
parent fddc389e24
commit 0c6068d6a2
14 changed files with 139 additions and 25 deletions
+2 -2
View File
@@ -45,13 +45,13 @@ void ChoiceValueViewer::draw(RotatedDC& dc) {
align_in_rect(style().alignment, RealSize(i->image.GetWidth(), i->image.GetHeight()), style().getRect()),
i->combine == COMBINE_NORMAL ? style().combine : i->combine
);
margin = i->image.GetWidth() + 1;
margin = dc.trInvS(i->image.GetWidth()) + 1;
}
}
}
if (style().render_style & RENDER_TEXT) {
// draw text
dc.DrawText(capitalize(value().value()),
dc.DrawText(tr(*viewer.stylesheet, value().value(), capitalize(value().value())),
align_in_rect(ALIGN_MIDDLE_LEFT, RealSize(0, dc.GetCharHeight()), style().getRect()) + RealSize(margin, 0)
);
}