1861
Mach4 General Discussion / Re: Mach 4 Exit button for touchscreen
« on: December 19, 2019, 05:57:07 PM »
Hi,
re-reading the whole thread there is another possibility that may avoid the situation where a random <Enter> keypress would cause an MDI
command to be initiated.
You say you have a text box for MDI input?
Did you use wxWidgets to do it? If so why don't you include an enter event. Then the only time that the enter event would be tested is while
the text box is active.
If you haven't already tried, wxFormBuilder is the premier development tool/system for generating wxWidgets code with a Lua wrapper.
I used to try to avoid it but trying to manually craft wxWidgets code is hard going. wxFormbuilder has taught me alot about wxWidgets.
Craig
re-reading the whole thread there is another possibility that may avoid the situation where a random <Enter> keypress would cause an MDI
command to be initiated.
You say you have a text box for MDI input?
Did you use wxWidgets to do it? If so why don't you include an enter event. Then the only time that the enter event would be tested is while
the text box is active.
If you haven't already tried, wxFormBuilder is the premier development tool/system for generating wxWidgets code with a Lua wrapper.
I used to try to avoid it but trying to manually craft wxWidgets code is hard going. wxFormbuilder has taught me alot about wxWidgets.
Craig