Gadget updates not shown while running subroutines
Posted: Wed Sep 21, 2022 11:13 pm
Hello,
i'm not new to Purebasic but new to programming with Window and gadget (OS = win10)
Actually i believe that i'm stupid cause i found not solution within the reference and not on internet.
My Problem:
I created a main window , added a addwindowtimer, two progressbargadgets, a button gadget and a listicongadget
i created loop with windoweven() and on button pressed i set fields text and color of the list icon gadget
and the gosub to a longer subroutine which runs several seconds .
the subroutine sets textfields on listicongadget depending on processing and sets the progressbars.
well now here is the problem, the progressbars work BUT the listicongadget doesn't update
it only updates with the latest text i set after returning from subroutine.
Anyone an idea to solve that problem ?
i'm not new to Purebasic but new to programming with Window and gadget (OS = win10)
Actually i believe that i'm stupid cause i found not solution within the reference and not on internet.
My Problem:
I created a main window , added a addwindowtimer, two progressbargadgets, a button gadget and a listicongadget
i created loop with windoweven() and on button pressed i set fields text and color of the list icon gadget
and the gosub to a longer subroutine which runs several seconds .
the subroutine sets textfields on listicongadget depending on processing and sets the progressbars.
well now here is the problem, the progressbars work BUT the listicongadget doesn't update
it only updates with the latest text i set after returning from subroutine.
Anyone an idea to solve that problem ?