wxToolBar::SetMargins

void SetMargins(float x, float y)

Set the values to be used as margins and spacing for the tools. This must be called before the tools are added if absolute positioning is to be used, and the default (zero-size) margins are to be overridden.