#main(argc,argv)
27-Jun-93 03:03:07
Sb: #35601-#main(argc,argv)
Fm: Bart Mathias 72017,1005
To: Steve Goddard 100014,674
My other problem is getting a file requester to open on (the window in) my
CUSTOMSCREEN. It opens behind my screen, on WorkBench, instead. I will try
your suggestions, but I find no ASLFR_Window tag mentioned on a quick look in
RKM. Only the ASL_Window that I have been using. And so far I haven't been
able to find either an ASLFR_Screen or an ASL_Screen, but there is a
WA_CustomScreen that is certainly worth a try.
Meanwhile, just in case my problem is more fundamental, let me rehash what I
have as of now. I open a custom screen 640X400 with NS_EXTENDED ored with
CUSTOMSCREEN, and dc.l SA_Width,#-1 dc.l SA_Height,#-1 dc.l TAG_DONE
tagged on at the end. I use OpenScreen() and OpenWindow() for 1.3
compatibility, and add tags to fix certain things that don't come out right
otherwise in 2.04-2.1. I save the screen structure pointer in a memory
location my assembler lets me call NSptr, which coincides with Screen in my
NewWindow structure. Shortly thereafter I open the window, with WA_Borderless
tagged TRUE (and followed by a TAG_DONE at the end). (This is where I'm
thinking of trying to use WA_CustomScreen, though I'm not sure how.) I save
the pointer at a random location named NWptr.
In any event, my screen and window open just the way I want them to.
Meanwhile (providing I got ver 36 or better of dos.library) I have opened the
asl.library and save ASLbase.
Then
move.l ASL_FileRequest
movea.l aslreqtag,a1
SYS AllocAslRequest([ASLbase]) [= jsr LVO_…]
move.l d0,ASLfr
and far below in my data storage:
aslreqtag: dc.l ASL_Hail,frtit
dc.l ASL_Window,NWptr
dc.l TAG_DONE frtit: dc.b "JIStoJi File Requester",0
cnop 0,4
Apparently the "movea.l aslreqtag,a1" is not being understood, because when
the user calls up a requester it comes out with the standard title on the
WorkBench screen.
– via Whap!