Ich möchte die Höhe einer Symbolleiste auf die gleiche Höhe wie die benachbarte Symbolleiste festlegen. Ich stelle diese Symbolleisten mit einer .xrc-Datei ein. Hier ist, was ich sehe:Ändern der Höhe einer wxToolBar
Und hier ist mein .xrc Markup:
<object class="sizeritem">
<flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>0</border>
<object class="wxToolBar" name="ID_TOOLBAR">
<style>wxTB_FLAT|wxTB_HORIZONTAL</style>
<bitmapsize>32,32</bitmapsize>
<dontattachtoframe>1</dontattachtoframe>
<object class="tool" name="ID_TOOL_RUN">
<bitmap>tool_run.png</bitmap>
<label>Run</label>
</object>
<object class="tool" name="ID_TOOL_PAUSE">
<bitmap>tool_pause.png</bitmap>
<label>Puase</label>
</object>
<object class="tool" name="ID_TOOL_STOP">
<bitmap>tool_stop.png</bitmap>
<label>Stop</label>
</object>
</object>
</object>
<object class="sizeritem">
<flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>0</border>
<object class="wxToolBar" name="ID_TOOLBAR3">
<style>wxTB_FLAT|wxTB_HORZ_TEXT|wxTB_NOICONS</style>
<margins>32,32</margins>
<dontattachtoframe>1</dontattachtoframe>
<object class="separator">
</object>
<object class="tool">
<label>Auto Attack</label>
</object>
</object>
</object>
Ich habe versucht, sowohl um die Größe ID_TOOLBAR3
mit margins
und bitmapsize
weder hat keine Wirkung. Kann ich noch etwas anderes machen?
EDIT: Ich habe auch versucht, die SetSize
verwenden, um die Höhe im Code anzupassen, und ich kann es nicht scheinen, es zu tun. Etwas sperrt es auf diese kleine Höhe.