11-25-2024, 11:32 PM
LitDev,
I really don't know. Is there any way that you know of that shows if you are running in the UI thread?
This could make a major difference in some programs. Say you have a bunch of events where the code in them is too long. So in the front of these events you put a flag and put the excess code in a subroutine. Then in the main code you put an if statement followed by another flag which says true, followed by a call to the sub routine that has the excess code in it. That way your running in the UI and doing updates as needed. So, it would be great if it actually works that way! That way you don't have to move the excess code. Just make it a subroutine!
JR
PS I hope I didn't confuse anybody.
I really don't know. Is there any way that you know of that shows if you are running in the UI thread?
This could make a major difference in some programs. Say you have a bunch of events where the code in them is too long. So in the front of these events you put a flag and put the excess code in a subroutine. Then in the main code you put an if statement followed by another flag which says true, followed by a call to the sub routine that has the excess code in it. That way your running in the UI and doing updates as needed. So, it would be great if it actually works that way! That way you don't have to move the excess code. Just make it a subroutine!
JR
PS I hope I didn't confuse anybody.