Drawing executed but not displayed ???

Linux specific forum
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Drawing executed but not displayed ???

Post by Joris »

Hi,

I have a setup as simplified in the code below here.
The loop blocks, somewhat understandable, also the gadgets (no more mouse clicks possible)
but the drawing to be executed is not displayed even though the code is executed.
What or how should this be done under linux ?
The drawing works perfectly if the loop has been stopped and is again controlled by mouse actions.
(the same code works perfectly under windows) ?

Thanks

Code: Select all

While  maxcount>count
  status=0    
 
  While status<>-#EAGAIN
    status=snd_rawmidi_read(port, @buffer, 1)
    If  status=>0 
      Analyse_Input(buffer, count)
      Do_drawings(buffer)                              ;******** no drawing becomes visible ???
     count+1
    EndIf
   Wend
Wend            
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Drawing executed but not displayed ???

Post by mk-soft »

On macOS and Linux you can not drawing outside event loop.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Drawing executed but not displayed ???

Post by Joris »

mk-soft wrote: Mon Feb 14, 2022 10:37 am On macOS and Linux you can not drawing outside event loop.
It is a separate loop, not the default EVENT loop.

I'll try to do something with the Eventtimer...
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Drawing executed but not displayed ???

Post by Joris »

Joris wrote: Mon Feb 14, 2022 11:29 amI'll try to do something with the Eventtimer...
Good job Joris, that does it. :D
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Post Reply