|
Post by turtleman on Mar 17, 2022 14:53:17 GMT -5
I finally got my never-ending program to behave and look like I want – actually, way better than ever expected. And again, thanks for everyone's help; I've learned a lot.
So, here's another "funny": I've accidentally noticed that positioning the mouse anywhere on the upper boundary of any of my nine LB windows will pause the program for as long as the left mouse button is held. Releasing the button causes the program to resume. Likewise, a right click will pause the program, while a left click will resume. That's one heck of a handy feature, but certainly not one I knew about or programmed.
Is this something everyone knows about but me? Is it a Kosher way of pausing a program? And is there any way to set a flag to indicate when the program has been paused this way?
|
|
|
Post by Rod on Mar 17, 2022 15:29:58 GMT -5
The. most number of windows I have ever programmed is two and usually the second is modal and transient. Nine windows on permanent display isn’t something I have ever done so behaviour as you describe is new to me.
|
|
|
Post by Chris Iverson on Mar 17, 2022 16:49:29 GMT -5
I hadn't noticed this, but it makes sense, and is a side effect of the way LB handles window messages for you.
When you start dragging a window, or when you have the window's context menu open, LB stops processing messages for that window, to focus on handling the situation(handling the menu or the window move.
Because of that, it can't move on to executing anything else until that finishes.
(More accurately, it doesn't stop processing messages, it just never finishes processing the message that started the window drag until the window drag completes, and it can't finish processing the message that opened the context menu until the context menu closes. Because it's still processing that message, it can't move on to anything else.)
|
|
|
Post by Carl Gundel on Mar 17, 2022 17:19:20 GMT -5
The. most number of windows I have ever programmed is two and usually the second is modal and transient. Nine windows on permanent display isn’t something I have ever done so behaviour as you describe is new to me. I worked for years on a medical application that had hundreds of windows. No joke.
|
|