We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creation of SB-Neuron. Ours. Branded.(v2)
#73
(04-03-2025, 09:22 PM)AbsoluteBeginner Wrote: When trying to draw with the mouse button pressed, there are problems with synchronization.  Sad

What requirements must be met when organizing the simultaneous operation of an event handler and the process of drawing an image on the Graphics window?  Huh

All interface updates only occur on the main UI thread, so best to not do this in an event subroutine as they only get done when the event subroutine ends and this can cause issues in an event that occurs often or takes some time.

The recommended approach is to set flags in event subroutines and do the UI work in a message loop.

This is an article I wrote on this for the old forum, https://learn.microsoft.com/en-us/archiv...ent-basics.
[-] The following 1 user Likes litdev's post:
  • AbsoluteBeginner
Reply


Messages In This Thread
RE: Creation of SB-Neuron. Ours. Branded.(v2) - by litdev - 04-04-2025, 09:52 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)