[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

5257.0. "Zoom! (input-handler example)" by SMAUG::SPODARYK (For three strange days...) Sun Dec 08 1991 22:04

    I have placed a little utility I've written on EOT::AMIGA:[UPLOAD] 
    called ZOOM101.LZH.  It's an input handler that will perform
    a "zoom" function on windows, when it detects a RIGHT_AMIGA+Z
    keypress.                                                   
    
    I've beaten on the WB2.0 version, and to some degree the WB1.3
    version as well.  Since I'm running the 2.0 ROMs, I'd really
    appreciate any feedback from 1.3 users.
    
    Here's the ZOOM.README:
    
From the zoom.c code:

/*
 *  zoom.c
 *
 *  Description:
 *
 *  	Example of using a basic input handler.
 *  
 *  	This will install an input handler in the chain, right after
 *  	Intuition.  It will grab events as they come in and check to 
 *  	see if a "right-Amiga" + "z" is pressed.  If one is spotted,
 *	the handler will perform a "zoom gadget"-like function.
 *
 *  	If this program is run twice, the second invocation will 
 *	notify the the first one to stop and clean things up.
 *
 *	The zoom20 program and icon are suitable for placement in
 *	the WBStartup directory under WB2.0.  WB1.3 users can just
 *	add something like this to their s:startup-sequence.
 *
 *    	    run >NIL: zoom13 
 *
 *  Author:
 *
 *	Stephen Spodaryk
 *	[email protected]
 *
 * 
 *  Disclaimer:
 *
 *	This code is freely released into the Public Domain.  Use it at
 *	your own risk, although it should not misbehave.  Unlike many
 *	handler examples I've seen, this code is relatively well written.
 *
 *	It's all in C, but I haven't seen any performance problems
 *	verses handlers I've written in assembler.
 *
 *	The WB1.3 handler will operate a little more slowly, not that
 *	you'd probably ever notice.
 *
 */
    
T.RTitleUserPersonal
Name
DateLines
5257.1naming confusionSMAUG::SPODARYKFor three strange days...Sun Dec 08 1991 22:1213
    Wouldn't you know it?  There already are some utilities floating
    around named ZOOM.  I just noticed a ZOOM41.LZH on EOT which
    appears to be a floppy optimizer of some kind.
    
    The actual images that I created are called ZOOM20 and ZOOM13, so
    there really isn't any conflict - just possible confusion.
    
    If anyone thinks of a better name, let me know.  ZIP is one
    possibility since the WB2.0 function is called ZipWindow().
    There's probably a conflict with that as well.
    
    Steve
                                                  
5257.22 new functionsSMAUG::SPODARYKFor three strange days...Sun Dec 08 1991 23:388
    Actually, I just added 2 new functions to the handler:
    
    RAMIGA + F:  perform a WindowToFront() function
    RAMIGA + B:  perform a WindowToBack() function
    
    The new version is also at EOT::AMIGA:[UPLOAD]ZOOM101.LZH.
    
    Steve
5257.3FYI- "ZIP" is another compressor/decompressor program...ATIS01::ASHFORTHMon Dec 09 1991 07:550
5257.4TENAYA::MWMMon Dec 09 1991 13:564
Just curious - what was wrong with the 2.0 IHelp commodity that caused you
to duplicate it to such a degree? Was it just for the 1.3 functionality?

	<mike
5257.5WHAMMY::spodarykFor three strange days...Mon Dec 09 1991 14:168
Yes.  Originally the need was really for a WB1.3 version.  Since I'm 
running 2.0 I figured I would write that one first, then make it 1.3 
compatible.  There probably isn't really a need for the 2.0 version, other
than the ability to customize it via some extra C code.

Besides, this was a case where it was fun to "reinvent the wheel". :^)

Steve