Quote:
Originally Posted by Thomas Richter
Strangely, there is a field do_ToolWindow in the disk object (see workbench/icon.h), ... Thus, potentially, there was quite a long way ago a plan to provide something like this, but the idea apparently got lost.
|
AMIGA Datenstrukturen - Lexikon. Das Nachschlagewerk für alle Programmierer | Lukowicz, Paul, Pfeiffer, Olaf | ISBN: 9783890902500 |
archive.org
Quote:
Originally Posted by AMIGA Datenstrukturen - Lexikon, page 273
do_ToolWindow 0x0046 (70) - Ein Adreßzeiger auf eine C-Zeichenkette, die ein CON:- oder RAW:-Fenster beschreibt, das beim Start des zu diesem Icon gehörigen Programms als Standardein-/Ausgabedatei geöffnet werden soll. Der Adreßzeiger auf die Window-Datenstruktur (siehe »Intuition«) des neuen Fensters wird dabei automatisch in die Komponente pr_WindowPtr der Process-Datenstruktur (siehe »Dos«) des Programms eingetragen. Um kein Fenster automatisch öffnen zu lassen, trägt man hier den Wert NULL ein. Dieser Adreßzeiger ist nur für Icons vom Typ WBTOOL von Bedeutung.
|
Sorry for german quote, the book is written in german, feel free to do a full translation.
It basically says, the field contains a pointer to a string with a CON:/RAW: window definition which should be used for standard in/output of the program and the window pointer will be written to some other structures automatically.
Edit: Some further research shows, that
Directory Opus 5 obviously respected do_ToolWindow also with other values than NULL, file
dopus5allamigas/source/Library/wb.c:1639 at github.com
Code:
// Tool window?
if (icon->do_ToolWindow &&
(copy->doc_DiskObject.do_ToolWindow = L_AllocMemH(data->memory, strlen(icon->do_ToolWindow) + 1)))
strcpy(copy->doc_DiskObject.do_ToolWindow, icon->do_ToolWindow);