home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11654 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.9 KB  |  67 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cbmvax!cbmehq!cbmden!srabol!sraboel
  2. From: sraboel@srabol.adsp.sub.org (Steen Raboel (ECD 019))
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Need help opening a window on a custom screen.
  5. Message-ID: <sraboel.00o1@srabol.adsp.sub.org>
  6. Date: 25 Jul 92 19:33:28 GMT
  7. Reply-To: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!srabol!sraboel
  8. Organization: Interactivision - The Name Of Precision
  9. Lines: 55
  10. X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
  11.  
  12. In article <13g4lfINNo64@darkstar.UCSC.EDU> smythe@cats.ucsc.edu (Brian Matthew Aljian) writes:
  13. > I need help opening a window on a custom screen.  I have declared the
  14. > following (lots of stuff omitted for brevity):
  15. > struct Screen *main_screen;
  16. > struct Window *main_window;
  17. > struct TagItem main_win_tags[] =
  18. >     {
  19. >     {WA_CustomScreen,    main_screen},
  20. >     ...etc...
  21. >     {TAG_DONE,        NULL},
  22. >     };
  23. > main_window = OpenWindowTagList(NULL, main_win_tags);
  24. > But this does not work.  My compiler complains about the first tag in the
  25. > main_win_tags[] structure.  What do I need to do to open this window on the
  26. > custom screen?
  27.  
  28.  
  29. Try:
  30.  
  31. struct TagItem main_win_tags[] =
  32. {
  33.     WA_CustomScreen, NULL,
  34.     ...etc...
  35.     TAG_DONE
  36. };
  37.  
  38.  
  39.  
  40. Then open your screen, and:
  41.  
  42.     main_win_tags[0].ti_Data = (Tag)main_screen;
  43.     main_window = OpenWindowTagList(NULL, main_win_tags);
  44.  
  45.  
  46. > Thanks for any help!
  47.  
  48. Hope this help.
  49.  
  50. >    Brian M. Aljian
  51. >    smythe@stallion.santa-cruz.ca.us
  52.  
  53. -- 
  54.  
  55.   /-----------------------------------------------------------------------\
  56.   | Steen Raboel                 UUCP: cbmehq!cbmden!srabol!sraboel       |
  57.   |                       _      FIDO: 2:231/138.0 Or 2:230/311.13        |
  58.   |                       \\ _                                            |
  59.   |               Interacti\X/ision - The Name Of Precision               |
  60.   \-----------------------------------------------------------------------/
  61.