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