home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / toolkits / xview / 1239 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.8 KB  |  48 lines

  1. Newsgroups: alt.toolkits.xview
  2. Path: sparky!uunet!email!w3!georg
  3. From: georg@infosys.tuwien.ac.at (Georg Trausmuth, Assistent)
  4. Subject: Re: trying to load xview .icon files during run
  5. Message-ID: <1993Jan25.135236.9441@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: w3.infosys.tuwien.ac.at
  8. Reply-To: georg@infosys.tuwien.ac.at
  9. Organization: Inst. f. Informationssysteme, TU Wien
  10. References: <1993Jan25.012629.24301@riogrande.cs.tcu.edu>
  11. Date: Mon, 25 Jan 1993 13:52:36 GMT
  12. Lines: 34
  13.  
  14. In article 24301@riogrande.cs.tcu.edu, cinnamon@sabine.cs.tcu.edu (Todd Cinnamon) writes:
  15. >Here's the problem: I'm trying to create a Server_image from data contained
  16. >in a .icon file.  The files are usually (but not always) in a C source
  17. >readable form, but I want to do this process during runtime and do not
  18. >wish to invoke the C compiler everytime I need a new icon.
  19. >
  20. >For example, I have "$OPENWINHOME/include/images/GILfile_glyph.icon" and
  21. >want to create a Server_image, but can't do:
  22. >
  23. >short image_bits[] = {
  24. >#include <images/GILfile_glyph.icon>
  25. >};
  26. >
  27. >since I need to determine the icon I really need during runtime.
  28. >
  29. >How can I create the Server_image using one of these .icon files?
  30. >
  31. >Thanks in advance for your kind and thoughtful responses.
  32.  
  33. Server_image image = (Server_image) xv_create(XV_NULL, SERVER_IMAGE,
  34.     SERVER_IMAGE_BITMAP_FILE,"images/GILfile_glyph.icon",
  35.     0);
  36.  
  37. You have to save your image as X-Bitmap with iconedit!
  38. Hope that helps!
  39.  
  40. ---
  41. *******************************************************************************
  42.     Georg Trausmuth            Technische Universitaet Wien (Vienna)
  43.     Email: georg@infosys.tuwien.ac.at       Institut f. Informationssysteme
  44.     Phone: +43 1 58801 4421              Argentinierstr. 8/3.Stock
  45.     Fax: +43 1 505 84 53             A-1040 Wien, Austria
  46. *******************************************************************************
  47.  
  48.