home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!lsl!stevewi
- From: stevewi@lsl.co.uk
- Newsgroups: comp.windows.x.motif
- Subject: MULTICOLOUR ICONS
- Summary: MULTICOLOUR ICONS
- Keywords: COLOR ICONS UIL
- Message-ID: <1992Aug14.125647.2295@lsl.co.uk>
- Date: 14 Aug 92 11:56:47 GMT
- Reply-To: stevewi@lsl.co.uk
- Organization: Laser-Scan Ltd., Cambridge
- Lines: 72
-
- My problem concerns the use of colour pixmaps defined using UIL.
- I am currently defining the colours used by the pixmaps in a color_table
- as follows :
-
- value
- my_table : color_table(
- background color = ' ',
- color('blue') = 'X',
- color('red') = '*',
- ...
- color('green') = '+');
-
- using this color_table when defining the pixmaps:
-
- value MY_ICON : icon (color_table = my_table,
- ' ',
- ' XXXXXX ',
- ' X****X ',
- ' X*++*X ',
- ' X*++*X ',
- ' X****X ',
- ' XXXXXX ',
- ' ');
-
- then using the pixmaps in labels and buttons instead of strings:
-
- object
- A_BUTTON : XmPushButton {
- arguments {
- XmNlabelType = XmPIXMAP;
- XmNlabelPixmap = MY_ICON;
- };
- };
-
- What I want to know is ->
-
- How can I define the values of the *colours* used in the color_table from
- the .Xdefaults file, or elsewhere if necessary ??
-
- What I want to be able to do is something like:
-
- value
- my_table : colour_table(
- background color = ' ',
- color('my_colour_1') = 'X',
- color('my_colour_2') = '*',
- ...
- color('my_colour_n') = '+');
-
- and define what these my_colour_1-n are somewhere else, preferably outside
- application control and in a simple .Xdefaults or similar file.
-
- Or am I asking too much ???
-
- Thanx in advance,
-
- Steve Wilkes
- -----------------------------------------------------------------------------
- | | |
- | Steve Wilkes | / | | |
- | Laser-Scan Ltd | \ |- /\ \ / * /\ | /\ | |
- | The Science Park | / \ \_ \/ | \_ |/ \| |
- | Milton Road | |
- | CAMBRIDGE | He was the kind of man who would wear wet copper |
- | CB4 4FY | armour in a thunderstorm shouting |
- | Tel (+44) 233 414420 | "The rain gods are b******s!!". |
- | | |
- -----------------------------------------------------------------------------
- | Disclaimer: |
- | This was all MY IDEA and had absolutely nothing to do with Laser-Scan... |
- | |
- -----------------------------------------------------------------------------
-