title: Uneven horizontal and vertical gap for same value in wxWidgets
body: <p><a href="https://i.stack.imgur.com/MCM3S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MCM3S.png" alt="enter image description here" /></a></p>
  <p>In wxWidgets i have initialized a <strong>Grid Sizer</strong> called <strong>numpad</strong>. and I have my <strong>wxButtons</strong> array named as <strong>numbers</strong>. I just want my GridSizer to have even spaces, and as you can see in the image that I have set <code>SetHGap(10)</code> and <code>SetVGap(10)</code>,  still the spaces in G.U.I. seem uneven.</p>
  <pre><code>    wxBoxSizer* vertiSizer = new wxBoxSizer(wxVERTICAL);
      wxBoxSizer* horiSizer = new wxBoxSizer(wxHORIZONTAL);
      calcArea = new wxTextCtrl(this, CALCAREA, &quot;&quot;, wxPoint(0,0), wxSize(100,60));
      calcArea-&gt;SetFont(wxFont(21, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD));
      
      numbers = new wxButton*[10];
      wxGridSizer* numpad = new wxGridSizer(3, 3, wxSize(0,0));    
      for(int i = 0; i &lt; 3; i++){
          
          for(int j = 0; j &lt; 3; j++){
              numbers[i*3+j] = new wxButton(this, wxID_ANY, std::to_string(i*3+j+1), wxPoint(0,0), wxSize(70, 80));
              numbers[i*3+j]-&gt;SetFont(wxFont(20, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD));
              
              numpad-&gt;Add(numbers[i*3+j], 0, wxFIXED | wxALL, 0);
              
              
          }
          
      }
      numpad-&gt;SetHGap(10);
      numpad-&gt;SetVGap(10);
      
      
      
      vertiSizer-&gt;Add(calcArea, 0, wxEXPAND | wxALL, 4);
  
      vertiSizer-&gt;Add(numpad, 0,  wxSHAPED| wxLEFT, 10);
      
      
      this-&gt;SetSizer(vertiSizer, true);
  </code></pre>