Eric Fontaine
Eric Fontaine
Making a note to myself maybe try wxFRAME_TOOL_WINDOW for the frame so there isn't a big title bar...
and this is interesting...it seems on Debian 12 when running wxWidgets v3.1.5, that the line responsible for setting minimize size of the window: https://github.com/essej/sooperlooper/blob/9a99524e262b35ebc54157a068bdd50ac62db155/src/gui/gui_app.cpp#L345 is not working properly. I seem...
chaning that line to: `_frame->SetMinSize(wxSize(850, 210));` works as that line was intended. I'm also noticing a little note in https://docs.wxwidgets.org/3.0/classwx_window.html#a307329dc3b10f5584aeb2cbce9293ffd  Though the _frame is a top-level window, so I...
hmm...though I'm not sure that SetSizeHints is causing that problem on wx v3.1.5, because the following works: ``` #include namespace Examples { class Application : public wxApp { bool OnInit()...
so this is very interesting on 3.1.5...the ordering of the current code does not properly set the minimum size: ``` _frame->SetSizeHints(850, 210); _frame->SetSize(_screen_pos.x, _screen_pos.y, 860, 215); SetTopWindow(_frame); _frame->Show(FALSE); _frame->Raise(); _frame->Show(TRUE);...
well I do wonder if the following calls of SetSizeHints(): https://github.com/essej/sooperlooper/blob/9a99524e262b35ebc54157a068bdd50ac62db155/src/gui/main_panel.cpp#L379 https://github.com/essej/sooperlooper/blob/9a99524e262b35ebc54157a068bdd50ac62db155/src/gui/main_panel.cpp#L404 https://github.com/essej/sooperlooper/blob/9a99524e262b35ebc54157a068bdd50ac62db155/src/gui/main_panel.cpp#L410 need to be replaced by SetMinSize() because they aren't a wxTopLevelWindow, cause according to that same warning...
thanks for verifying the improper resize happens on your system too.
I did checkout some basic wxWidget examples and made a test example of just a wxFrame with SetMinSize(100,100) and with only a MainMenu added to it: https://github.com/ericfont/Examples_wxWidgets/blob/ea3eeba8eae514a66b4a101f896462c020fb545c/src/MenusAndToolbars/MainMenu/MainMenu.cpp And I've found...
I suppose for simplicity of code and generality I will make this apply for all controls made with class CheckBox and ChoiceBox and SliderBar, so would apply for both per-loop...
I notice the current preferences files in `/home/user/.sooperlooper` are _default_midi.slb_ which works in headless and GUI mode, and _gui_config.xml_ which is only for GUI settings... I'm thinking for my feature...