home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmger!edohwg!heinz
- From: heinz@edohwg.UUCP (Heinz Wrobel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Need help opening a window on a custom screen.
- Message-ID: <heinz.02nm@edohwg.UUCP>
- Date: 24 Jul 92 20:43:20 GMT
- References: <13g4lfINNo64@darkstar.UCSC.EDU>
- Organization: Edotronik GmbH
- Lines: 44
-
- 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?
-
- I assume it complains about a non-constant initializer.
-
- Try a
- ...
- {WA_CustomScreen, NULL},
- ...
-
- and
-
- main_win_tags[0].ti_data = main_screen;
- main_window = OpenWindowTagList...
-
-
- > Brian M. Aljian
-
- --
- Heinz Wrobel, Edotronik GmbH (ECG018)
- FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
- Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
- "It's good to have a mouse, it's faster if you can do without one..."
- "He who doesn't develop with an A2024 doesn't know about font independent
- user interfaces..."
-