[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2272.0. "POINTER ON/OFF" by AYOV11::JNOLAN () Fri Feb 24 1989 10:44

    
    HI,
    
     	A question for you out there , is it possible to switch the
    pointer off ?. I know I could do it by setting the pointer blank
    in prefs, but is there a lib function or routine to allow be to 
    disable / enable the pointer at will ?.
    	I'd find this useful as there are occasions ( i.e. writing games)
    where it would be nice to just clear the pointer out of the way
    and when the program is finished re-enable it. 
    
    				Thanks,
    	
    						John.
    
    P.S. Most of my programming is done using F-basic compiler.
      
T.RTitleUserPersonal
Name
DateLines
2272.1QMouse will do the trick for youMTWAIN::MACDONALDWA1OMM 7.093/145.05/223.58 AX.25Fri Feb 24 1989 12:556
    You might consider using QMouse V1.4. This has a settable timer
    for blanking the pointer. Mousing the mouse makes it reappear.
    There is a simialr feature on MachII V2.5, but it does not function
    correctly with some editors like uEmacs.
    
    Paul
2272.2STC::HEFFELFINGERPigs and PoniesFri Feb 24 1989 23:249
    There's a function call in the Intuition library called
    ClearPointer(win)  (where win is a pointer to a Window structure)
    
    I don't know how you would use this in F-BASIC.
    
    The other side of the coin is SetPointer().
    
    Gary
    
2272.3thanksAYOV11::JNOLANMon Feb 27 1989 08:198
    
    RE: .2
    
    	Thanks,
    		that's exactly what I'm looking for, ( I can access
    the libs. from F-Basic).
    
    					John.
2272.4Use IntuitionTLE::RMEYERSRandy MeyersMon Feb 27 1989 20:4510
\There is a great advantage to using the Intuition routines.  They set the
pointer only for your window.  So, when your window is active, the pointer
has the imagery (or lack thereof) that you specify, but if you activate
another window (click on it using the invisible pointer), the pointer will
reappear until your window is active again.

For example, Workbench uses that trick.  When Workbench is busy and not
listening to you, it changes the shape of the pointer to the ZZZ cloud.
However, the pointer only has that shape for Workbench widows: click on a
CLI window (or any program window), and the normal pointer reappears.