View Single Post
Old 11 December 2021, 19:56   #5
a4k-oerx
Registered User
 
Join Date: Oct 2008
Location: EU
Posts: 163
Quote:
Originally Posted by Thomas Richter View Post
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);

Last edited by a4k-oerx; 11 December 2021 at 21:57. Reason: Directory Opus 5 sourcecode
a4k-oerx is offline  
 
Page generated in 0.04737 seconds with 11 queries