home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cbmvax!cbmehq!cbmden!srabol!sraboel
- From: sraboel@srabol.adsp.sub.org (Steen Raboel (ECD 019))
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Need help opening a window on a custom screen.
- Message-ID: <sraboel.00o1@srabol.adsp.sub.org>
- Date: 25 Jul 92 19:33:28 GMT
- Reply-To: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!srabol!sraboel
- Organization: Interactivision - The Name Of Precision
- Lines: 55
- X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
-
- In article <13g4lfINNo64@darkstar.UCSC.EDU> smythe@cats.ucsc.edu (Brian Matthew Aljian) writes:
- >
- > I need help opening a window on a custom screen. I have declared the
- > following (lots of stuff omitted for brevity):
- >
- > struct Screen *main_screen;
- >
- > struct Window *main_window;
- >
- > struct TagItem main_win_tags[] =
- > {
- > {WA_CustomScreen, main_screen},
- > ...etc...
- > {TAG_DONE, NULL},
- > };
- >
- > main_window = OpenWindowTagList(NULL, main_win_tags);
- >
- > But this does not work. My compiler complains about the first tag in the
- > main_win_tags[] structure. What do I need to do to open this window on the
- > custom screen?
-
-
- Try:
-
- struct TagItem main_win_tags[] =
- {
- WA_CustomScreen, NULL,
- ...etc...
- TAG_DONE
- };
-
-
-
- Then open your screen, and:
-
- main_win_tags[0].ti_Data = (Tag)main_screen;
- main_window = OpenWindowTagList(NULL, main_win_tags);
-
-
- > Thanks for any help!
-
- Hope this help.
-
- > Brian M. Aljian
- > smythe@stallion.santa-cruz.ca.us
-
- --
-
- /-----------------------------------------------------------------------\
- | Steen Raboel UUCP: cbmehq!cbmden!srabol!sraboel |
- | _ FIDO: 2:231/138.0 Or 2:230/311.13 |
- | \\ _ |
- | Interacti\X/ision - The Name Of Precision |
- \-----------------------------------------------------------------------/
-