🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fras.text.programmieren
Article #105

Re: AppWindow

#105
From: Erik Wasser
Date: Mon, 15 Apr 1996 15:32
85 lines
4030 bytes
Typex@xeno.mcnet.de   (Manuel   Nowka)   benutzte   seine  Tastatur  am
12.04.1996  um  22:47:59  Uhr,  um  folgenden  Text  unter  dem Betreff
"AppWindow" zu erzeugen:

> Hi ...
> mich würde mal interessieren wie ein AppWindow funktioniert.
> Z.B wie ich weiß wenn ein Icon auf dem Window ist.

So einfach aus dem Kopf würde ich sagen, daß dein Fenster eine
Nachricht bekommt und zwar vom Typ... wühl... kram... nein, ich lag
völlig falsch, es ist...

workbench.library/AddAppWindowA()

Der Aufruf wird dir sicherlich weiterhelfen!

-------------- raschel raschel raschel --------------------------------

   NAME
      AddAppWindowA - add a window to workbench's list of appwindows.  (V36)

   SYNOPSIS
      AppWindow = AddAppWindowA(id, userdata, window, msgport, taglist)
      D0                  D0     D1       A0      A1       A2

      struct AppWindow *AddAppWindowA(ULONG, ULONG, struct Window *,
                              struct MsgPort *, struct TagItem *);

      Alternate, varargs version:
      struct AppWindow *AddAppWindow(ULONG, ULONG, struct Window *,
                              struct MsgPort *
                              tag1, data1,
                              tag2, data2,
                              ...
                              TAG_END );

   FUNCTION
      Attempt to add the window to workbench's list of appwindows.
      Normally non-workbench windows (those not opened by workbench)
      cannot have icons dropped in them.  This call is provided to
      allow applications to be notified when an icon or icons get
      dropped inside a window that they have registered with workbench.
      The notification consists of an AppMessage (found in workbench.h/i)
      of type 'MTYPE_APPWINDOW' arriving at the message port you specified.
      What you do with the list of icons (pointed to by am_ArgList) is
      up to you, but generally you would want to call GetDiskObjectNew on
      them.

   INPUTS
      id - this variable is strictly for your own use and is ignored by
           workbench.  Typical uses in C are in switch and case statements,
           and in assembly language table lookup.
      userdata - this variable is strictly for your own use and is ignored
               by workbench.
      window - pointer to window to add.
      msgport - pointer to message port workbench will use to send you an
              AppMessage message of type 'MTYPE_APPWINDOW' when your
              window gets an icon or icons dropped in it.
      taglist - ptr to a list of tag items.  Must be NULL for V2.0.

   RESULTS
      AppWindow - a pointer to an appwindow structure which you pass to
                RemoveAppWindow when you want to remove the window
                from workbench's list of appwindows.  NULL
                if workbench was unable to add your window; typically
                happens when workbench is not running or under low
                memory conditions.

   SEE ALSO
      RemoveAppWindow()

   NOTES
       The V2.0 icon editor is an example of an app window.  Note that app
       window applications generally want to call GetDiskObjectNew
       (as opposed to GetDiskObject) to get the disk object for the icon
       dropped in the window.

   BUGS
      None


-------------- zerknüll und wech --------------------------------------

--
So long... Fuzz (@KAROASS.gun.de)
Technical Details
Message-ID: <xcnoSMD256aUz1@-fuzz.karoass.gun.de>
Path: arc1-ca.pugleaf.net!darkness.gun.de!karoass.gun.de
References: <xbvm$MD907a101zA@typex.xeno.mcnet.de>

Show Full Headers
Complete Article Headers
From: FUZZ@KaroAss.gun.de (Erik Wasser)
Subject: Re: AppWindow
Message-ID: <xcnoSMD256aUz1@-fuzz.karoass.gun.de>
Date: Mon, 15 Apr 96 16:32:18 CET
X-Newsreader: MicroDot 1.11beta16 [REGISTERED 000256]
X-ZC-TELEFON: V+49-221-4303752
Path: arc1-ca.pugleaf.net!darkness.gun.de!karoass.gun.de
Newsgroups: fras.text.programmieren,z-netz.rechner.amiga.programmieren
X-Gateway: ZConnect  airport.in-berlin.de [Connectline/AmigaOS]
References: <xbvm$MD907a101zA@typex.xeno.mcnet.de>
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  8bit
Mime-Version:  1.0