Why mouse pointer occupied ?

Just starting out? Need help? Post your questions and find answers here.
hdt888
User
User
Posts: 56
Joined: Sun Jul 07, 2024 8:42 am

Why mouse pointer occupied ?

Post by hdt888 »

I have 2 windows, window A as main window, window B as 2nd window.
Why after every 4 seconds the cursor on the main window disappears (like it was occupied) ?.
Where do I fix the error?.

Code: Select all

Procedure THREAD_RELOAD_DATA_MAIN_WIN(okok)
  Repeat
    PostEvent(#EVENT_RELOAD_DATA_MAIN_WIN, #MAIN_WIN, #PB_Ignore)
    Delay(4000)
  ForEver
EndProcedure
..........
............
; Main win
Procedure Create_MAIN_WIN()
  OpenWindow(#MAIN_WIN,................)
  ......
  BindEvent(#PB_Event_CloseWindow, @Events_MAIN_WIN())
  BindEvent(#PB_Event_Gadget, @Events_MAIN_WIN(), #PB_All)
  CreateThread(@THREAD_RELOAD_DATA_MAIN_WIN(), 0)
EndProcedure
At the event loop:

Code: Select all

Procedure Events_MAIN_WIN()
  Select WaitWindowEvent()
    Case #EVENT_RELOAD_DATA_MAIN_WIN
      READ_OTHERS_REGISTRY()
      COUNT_DEVICES()
      If EventWindow() = #MAIN_WIN
        SET_TEXT_FOR_GADGETS_AT_MAIN_WIN()
        SET_TOOLTIPS_FOR_BUTTONS()
      EndIf
  EndSelect
EndProcedure
PB 5.x + 6.x + Win10. Feel the ...Pure... Power.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Why mouse pointer occupied ?

Post by infratec »

Your code does not show the misbehaviour.
So I can not tell you what's wrong.

Post a working code example which shows the behaviour, then we can try to find the culprit.
Post Reply