[futurebasic] Re: [FB] cursor problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 6 Apr 2001 12:17:50 +0100
>I have a cursor problem.  In my program I use CALL HIDECURSOR to get rid of
>the arrow cursor, so I can create a full screen cross hairs. However, when I
>temporarily switch to a different application using the application menu,
>the arrow cursor is still gone and I usually have to go back to my
>application, click a button in my application to change back to the arrow
>cursor, and then again change to the other application. It is a pain in the
>neck to have to remember to always do this.
>
>Question: is there any way to "automatically" reinstate the arrow cursor
>when I switch applications by clicking in the application menu?  The same
>problem occurs in the VersaTerm Pro application that I have previously used,
>so maybe there is not an easy answer.
>
>        Eric

Another thing to remember about HIDECURSOR is that it records the times it
is called.

If you call HideCursor 2 times, you need to call ShowCursor 2 times to get
it back. But any "Cursor _someCursor" statement will bring it back
regardless.

Little demo below demonstrates the nestedness of Hide/Show cursor. I think
Hide/Show Pen is the same situation.

I realize this may not apply to your situation, but it is handy to know.
Can explain missing cursors on occasion.

Robert Covington

' Only a cursory example.

WINDOW 1
PRINT

PRINT " Going to hide the cursor with HideCursor."
PRINT
DELAY 1800

CALL HIDECURSOR

PRINT "Hidden"
PRINT
DELAY 1800

PRINT " Going to hide it again with  HideCursor"
PRINT
DELAY 1800

CALL HIDECURSOR
PRINT " Going to Hide it 3rd time with HideCursor...3 times now"
PRINT
DELAY 800
CALL HIDECURSOR

DELAY 1800

PRINT " Going to call ShowCursor once"
PRINT
DELAY 800
CALL SHOWCURSOR
DELAY 1500
PRINT " Going to call ShowCursor Again"
PRINT
DELAY 1800

CALL SHOWCURSOR

PRINT " Whoops! Still need another one"
PRINT
PRINT " Click again to end."

DO
UNTIL FN BUTTON
CALL SHOWCURSOR