Can't get amigaguide.library to open a window
Hello, I Can't get amigaguide.library to open a window neither with OpenAmigaGuideAsync() or OpenAmigaGuide() . the screen is the workbench screen in P96 RTG mode. well the object is created, and after this I receive a signal with AmigaGuideSignal() and GetAmigaGuideMsg() , the signal is ActiveToolID, but well absolutely no visible windows around. Tested with OS3.2.3. I'm going to try the amigaguide datatype version, but well i'll have to manage the window open/close code myself. I don't want to use a System("multiview myguide.guide"); because who knows if multiview is in the path on OS3, and there are path to the guide issues. but well I may do that.
if(!AmigaGuideBase)
{
AmigaGuideBase = OpenLibrary("amigaguide.library", 39);
}
if(!AmigaGuideBase) return FALSE;
app->nAmigaGuide.nag_Name = "PetMate.guide";
app->nAmigaGuide.nag_Screen = CurrentMainScreen;
if(!app->amigaGuideHandle) /* could already be opened !*/
{
app->amigaGuideHandle = OpenAmigaGuideAsync(&app->nAmigaGuide, TAG_END); /* struct must be persistent */
}
...
Can someone just make a simple working example of "attaching an amigaguide to a BOOPSI window using the Datatype API" ?
I've again lost many hours on this. I've also found a third technique, this can be done with the gadtools API and "AddDTObject()", but it keep on crashing, and apparently you have to manage a ton of things in the event loop for this. So I'm back to boopsi window + a layout + a datatype of amigaguide in the layout. But it displays nothing in no case.
Online Status
... Still a mistery, and still annoyed with that. I investigated again: OpenAmigaGuide() would open the guide window (but freeze the app), when OpenAmigaGuideAsync() will return OK, then send message ActiveToolID, which apparently means "hello", but absolutely no window visible anywhere. SnoopDOS, that aminet tool that traces what happens on the OS, says the .guide file is read correctly by a parallel amigaguide process. Also It looks like amigaguide.library then uses amigaguide.datatype, I though it was the other way round.
The DEVCD is full of examples for using amigaguide.library in async mode, and I really quite do the same it seems.
Still no cigar. I also tried to manage an extra window on my app attaching a .guide as datatype to it. I got even more problems, it miss layouting it seems. It blinked once with the right content. It's many more code that way than with amigaguide library . No examples for that. Still having hopes for the library version.