X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b28757f5e64bac68d9b159240616fc4d9ad66bc..a37a5a73c54c0e120f0a35fc02e3ac4b600a42ff:/contrib/samples/ogl/studio/studio.cpp diff --git a/contrib/samples/ogl/studio/studio.cpp b/contrib/samples/ogl/studio/studio.cpp index 18dd46d166..3a08a9be01 100644 --- a/contrib/samples/ogl/studio/studio.cpp +++ b/contrib/samples/ogl/studio/studio.cpp @@ -447,6 +447,10 @@ void csApp::CreateDiagramToolBar(wxFrame* parent) "", wxPoint(controlX, 1), wxSize(pointSizeW, pointSizeH), maxPointSize, pointSizes); delete[] pointSizes; +#ifdef __WXGTK__ + m_diagramToolBar->AddControl(m_pointSizeComboBox); +#endif + m_pointSizeComboBox->SetSelection(10 - 1); // Create a combobox for zooming @@ -466,6 +470,10 @@ void csApp::CreateDiagramToolBar(wxFrame* parent) "", wxPoint(controlX, 1), wxSize(zoomW, zoomH), noStrings, zoomStrings); delete[] zoomStrings; +#ifdef __WXGTK__ + m_diagramToolBar->AddControl(m_zoomComboBox); +#endif + // i = (zoom - minZoom)/increment // index = noStrings - i - 1 // 100%