Use more appropriate size for DrawChoice() in the render sample
The drawn combobox was so huge that it looked wrong, use a more reasonable size for it.
This commit is contained in:
@@ -352,8 +352,10 @@ private:
|
|||||||
|
|
||||||
y += heightListItem;
|
y += heightListItem;
|
||||||
|
|
||||||
dc.DrawText("DrawChoice()", x1, y + 20);
|
y += lineHeight;
|
||||||
renderer.DrawChoice(this, dc, wxRect(x2, y, 80, 50), m_flags);
|
dc.DrawText("DrawChoice()", x1, y);
|
||||||
|
renderer.DrawChoice(this, dc,
|
||||||
|
wxRect(x2, y, width, 1.5*GetCharHeight()), m_flags);
|
||||||
y += 50;
|
y += 50;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user