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

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

111.0. "Anyone get Computes Atari ST mag?" by MILRAT::WALLACE () Thu Jun 02 1988 15:01

    Can someone who gets the "Computes Atari ST" magazine tell me if
    there disk programs come with sources or are they just executibles?
    In particular the "Stashcan" program in the latest issue.
    
    I'd like to write a similiar program, something like putting a PRINTER
    Icon on the screen and being able to drag files to it from the DESKTOP.
    But I don't know how the application can find out what file was
    dragged to it.
    
    On the other hand, the sources to Stashcan is the only thing I'd
    be interested in the magazine and don't want to spend the money
    if there is not source code.
    
      Thanks,
    	Ray (..just call me tight wad..)
T.RTitleUserPersonal
Name
DateLines
111.1Source IncludedGEMVAX::KEENEThu Jun 02 1988 16:008
    I can't speak for all the programs on "Compute's Atari ST" disks,
    but I do know that "Stashcan" does have the source code on the disk
    in a compressed format within the file "SOURCE.ARC".
    Hope this helps.
    
    Rick


111.2stashcan programCIMBAD::POWERSI Dream Of Wires - G. NumanThu Jun 02 1988 17:3520
    
    re .0
    
         If I understand what you want to do is add a new icon to the
    already existing gem desktop, and be able to drag files to it to
    be able to print them out.  Is this what you had in mind??  Well
    I do not believe this is possible.  The gem desktop, is itself an
    application program, and there is no way to tell it about the new
    icon.  You would have to write another desktop application.  I have
    the computes article and disk you requested, but the person that
    wrote that didn't have to put a new desktop icon on the screen,
    the trashcan is already there.  What I believe he did was intercept
    the gemdos call to delete a file.  This call gets passed the filename
    as a parameter.  Also there is no gemdos call to print out a file,
    that is done in the application by opening up the file to print
    reading in the characters, and making a call to gemdos to print
    out a character.
    
    Bill Powers
    
111.3It's always so simple once you know howMILRAT::WALLACEThu Jun 02 1988 17:5311
    Thanks .1 and .2!
    
    RE .2, yes you understood correctly. I realized your point about
    the DESKTOP being an application etc.. So I was surprised when I
    saw this Stashcan program. I thought the author had figured out
    how to "tap into" that application. I guess I should have realized
    that he had tapped into gemdos as you explained, but I was too busy
    dreaming :-).
    
    Thanks again for the information and insight.
    	Ray
111.4CHEST::BADMANLaugh? I almost did.Fri Jun 03 1988 12:288
    I don't see why you couldn't introduce an icon to the screen ...
    
    just write an interrupt routine that intercepts all mouse movement
    and clicking. Using this information, you should be able to manipulate
    a user defined icon from the interrupt routine.
    
    
    				Jamie.
111.5Yes but..MILRAT::WALLACEFri Jun 03 1988 12:4412
    What you say is true, but.. What I want to do is drag a file from
    a desktop window to "my icon" and have my application program be
    able to figure out what the name of the file (or files) was that
    was just dragged to the icon so I can print out the file(s) (or
    do other manipulations). Using your suggestion I may be able to
    figure that something was dragged to my icon (mouse button pressed
    when cursor entered Icon and then button released) but I would have
    no indication what (if anything) was dragged there. Some how I need
    to get the desktop to tell me the names of the files that were dragged
    there.
          
    	Ray
111.6pitfalls of GEMCIMBAD::POWERSI Dream Of Wires - G. NumanFri Jun 03 1988 13:0425
    
    re .4
    
         I guess you missed my point, perhaps I didn't explain myself
    well enough.  Yes you are right you could put an icon on the screen,
    and intercept the clicks.  But what I was trying to get accross
    was that there was no way for you to tell the application program,
    in this case the desktop about it, and what it should do say if
    a file was dragged to the icon.  The icons on the desktop are known
    to the desktop, if a disk icon is clicked on the desktop opens a
    window, and takes a directory.  If a file is dragged to one of the
    disk icons, then it knows, that means copy the file.  if a file
    is dragged to the trashcan icon, then it knows to call gemdos delete
    file routine, and passes it the filename to delete.  How is it supposed
    to know what to do for your icon??  Yes it would have been neat if gem
    was capable of doing this.  Imagine having an icon for all your
    devices, then say you drag a file to the midi icon, and this file
    has midi codes in it, automatically your synthesisor starts to play
    the codes in it.  Or what .0 wanted to do simply drag a filename
    to the printer icon, and have the file print out.  This is the way
    gem should have been written, but it wasen't, so we have to live
    with it.
    
    Bill Powers
    
111.7NeoDeskLDP::WEAVERLaboratory Data ProductsSat Jun 04 1988 15:0119
    Re: .0
    
    There is already a desktop replacement that does what you want.
    It is called NeoDesk and is available from CompuClub for ~$30.00.
    It has a separate printer icon that supposedly queues print requests.
    Unfortunately, I don't believe it is a spooler, but it supposedly
    will work with spooler accessories.  For those who haven't seen
    NeoDesk, it is a real nifty program.  It allows up to 5 applications
    to be placed on the desktop, so you can simply double-click on them
    to run them (no more opening file windows for commonly used programs).
    It also has improved icons, and a host of other features that are
    escaping me for the moment.  The one major drawback in my mind is
    that it doesn't allow text only windows for files.  They also list
    a few programs that don't work well with it, one of which is EasyDraw
    (which I happen to own).  Of course, it is simply an application
    program, and you can exit it at any time if you have compatability
    problems, to get back to the standard desktop.
    
    						-Dave