Skip to content

Commit

Permalink
fix ui issue of weights creation dialog
Browse files Browse the repository at this point in the history
When use low resolution projection (e.g. 640x480), the weights creation dialog can not be fully displayed, and a verticle scroll bar is needed  in this case (as in other dialog e.g. k-means dialog)
  • Loading branch information
lixun910 committed Jun 18, 2019
1 parent acafc2b commit e2c9032
Show file tree
Hide file tree
Showing 3 changed files with 1,765 additions and 1,550 deletions.
14 changes: 11 additions & 3 deletions DialogTools/CreatingWeightDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ bool CreatingWeightDlg::Create(wxWindow* parent, wxWindowID id, const wxString&

SetParent(parent);
CreateControls();
GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
//GetSizer()->Fit(this);
//GetSizer()->SetSizeHints(this);
Centre();

return true;
Expand Down Expand Up @@ -212,7 +212,15 @@ void CreatingWeightDlg::CreateControls()
m_spinn_inverse_knn = XRCCTRL(*this, "IDC_SPIN_POWER_KNN", wxSpinButton);

m_btn_ok = XRCCTRL(*this, "wxID_OK", wxButton);


wxScrolledWindow* win = wxDynamicCast(FindWindow( XRCID("ID_CREATE_WEIGHT_SCROLL_WIN")), wxScrolledWindow);

win->SetAutoLayout(true);
win->FitInside();
win->SetScrollRate(5, 5);

FitInside();

m_X_time->Show(false);
m_Y_time->Show(false);

Expand Down
Loading

0 comments on commit e2c9032

Please sign in to comment.