@kas1e
yes, but did you notice that only WB windows show a (new)window pointer?
If you open other program it doesn't trigger (New)Window pointer.
So maybe there is some "way" to AddGadget to such (new)window, after last gadget of such window:
struct Gadget *ngad;
int32 i;
...
IExec->DebugPrintF("0x%08lx (WFLG_WBENCHWINDOW)\n",newWin->Flags&WFLG_WBENCHWINDOW);
...
ngad = newWin->FirstGadget;
i = 1;
while(ngad) {
IExec->DebugPrintF("Gad_#%02ld = 0x%08lx\n",i++,ngad);
ngad = ngad->NextGadget;
}
example opening WB RAM Disk:
[NEW]OpenWindowTagList(): win=0x600668d0
L= 50 T= 50
W= 481 H= 292
Flags = 0x0200107f
0x02000000 (WFLG_WBENCHWINDOW)
Gad_#01 = 0x6006691e
Gad_#02 = 0x6006694a
Gad_#03 = 0x60066976
Gad_#04 = 0x600669a2
Gad_#05 = 0x600669ce
Gad_#06 = 0x600669fa
ti_Tag = 0x8000007f -> WA_BackFill : 0x5fed9588
ti_Tag = 0x80000098 -> WA_PointerDelay : 0x00000001
ti_Tag = 0x8000006f -> WA_ScreenTitle : 0x6ff2233f
ti_Tag = 0x80000093 -> WA_NewLookMenus : 0x00000001
ti_Tag = 0x80000090 -> WA_AutoAdjust : 0x00000001
ti_Tag = 0x80000092 -> WA_MenuHelp : 0x00000001
ti_Tag = 0x800000ab -> WA_AlphaClips : 0x00000018
ti_Tag = 0x800000a6 -> WA_GrabFocus : 0x00000001
chekcing with ranger such gadgets are Bool/Prop-gadgets.