Skip to content

Commit

Permalink
update connection diadlog UI on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Mar 5, 2017
1 parent ee02233 commit e12817d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DialogTools/ConnectDatasourceDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@ void ConnectDatasourceDlg::InitRecentPanel()
scrl = new wxScrolledWindow(recent_panel, wxID_ANY, wxDefaultPosition,
wxSize(420,200), wxVSCROLL );
scrl->SetScrollRate( 5, 5 );
#ifdef __WIN32__
scrl->SetBackgroundColour(*wxWHITE);
#endif

wxBoxSizer* sizer;
sizer = new wxBoxSizer( wxVERTICAL );
Expand Down Expand Up @@ -984,6 +987,9 @@ void ConnectDatasourceDlg::InitSamplePanel()
wxDefaultPosition, wxSize(420,200),
wxVSCROLL );
sample_scrl->SetScrollRate( 5, 5 );
#ifdef __WIN32__
sample_scrl->SetBackgroundColour(*wxWHITE);
#endif
{
wxBoxSizer* sizer;
sizer = new wxBoxSizer( wxVERTICAL );
Expand Down
4 changes: 4 additions & 0 deletions GdaConst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ void GdaConst::init()
ref_medium_pt_sz += 5;
ref_large_pt_sz += 5;
}

if (GeneralWxUtils::isWindows()) {
ref_extra_small_pt_sz += 2;
}

extra_small_font = wxFont::New(ref_extra_small_pt_sz,
wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL,
Expand Down

0 comments on commit e12817d

Please sign in to comment.