On Thu, 16 Sep 2021 21:46:53 -0400 Paul Young wrote:
PY> I have an application which uses wxWidgets. It puts up windows which have
PY> buttons. Often this is on a touch screen. Sometimes the users miss the
PY> buttons and accidentally move or resize the windows.
PY> I would like to have an option which turns off the ability to move or
PY> resize the windows.
Windows not using wxRESIZE_BORDER style can't be resized at all, so if you
don't want to allow it, the simplest is to just not use this style when
creating your frames. You probably also want to avoid using wxMAXIMIZE_BOX
in this case.
Moving can be effectively forbidden by not using wxSYSTEM_MENU style
neither, or you could just maximize the window which ensures that it can't
be moved as a side effect.
TT-Solutions: wxWidgets consultancy and technical support