From owner-oi-users Thu Mar 9 06:46:41 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA09747 for oi-users-outgoing; Thu, 9 Mar 1995 06:46:41 -0800 Received: from mail1.new-york.net (mail1.new-york.net [165.254.2.54]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA09741 for ; Thu, 9 Mar 1995 06:46:40 -0800 Received: from athena.fi.gs.com by mail1.new-york.net (PMDF V4.3-10 #5880) id <01HNXENQD3FK001XOV@mail1.new-york.net>; Thu, 09 Mar 1995 09:43:19 -0500 (EST) Received: from nyeqmhub.eq.gs.com by gs.com (PMDF V4.3-10 #7425) id <01HNXEKXK4XC9D7TQT@gs.com>; Thu, 09 Mar 1995 09:41:03 -0500 (EST) Received: from nyqsdsn1.eq.gs.com (nyqsdsn1.eq.gs.com [154.4.4.151]) by nyeqmhub.eq.gs.com (8.6.10/8.6.4) with ESMTP id JAA02502 for ; Thu, 9 Mar 1995 09:43:03 -0500 Received: from nyqsdc02.eq.gs.com (nyqsdc02.eq.gs.com [154.4.4.192]) by nyqsdsn1.eq.gs.com (8.6.9/8.6.4) with ESMTP id JAA13798 for ; Thu, 9 Mar 1995 09:43:02 -0500 Received: by nyqsdc02.eq.gs.com (8.6.9) id JAA07768; Thu, 9 Mar 1995 09:43:01 -0500 Date: Thu, 09 Mar 1995 09:43:01 -0500 From: David Avraamides Subject: my modifications to the .cf file are lost To: oi-users@freefall.cdrom.com Message-id: <199503091443.JAA07768@nyqsdc02.eq.gs.com> Content-transfer-encoding: 7BIT Sender: oi-users-owner@FreeBSD.org Precedence: bulk I've been using the File Selection Dialog in Motif mode and I noticed that when I try and override the default colors, there's no way to specify the foreground and background of the scrolling lists in the dialog. (You can't get at these widgets in uib) So, I tried putting '*foreground: gray' and '*background: navy' in my .cf file. This works, but these changes are lost next time I save my app from uib - even if I make the changes before I load my app into uib. My latest solution is to put my configuration resource overrides in a separate file (.res) and add the following hack to the Makefile: # make sure configuration file is up to date all: PortCost merged.cf # # a hack to get my resource definitions (in PortCost.res) into the app's file # merged.cf : PortCost.cf PortCost.res perl -ni.bak -e 'last if (/^! DO NOT EDIT BELOW HERE/); print' PortCost.cf echo '! DO NOT EDIT BELOW HERE' >> PortCost.cf cat PortCost.res >> PortCost.cf touch merged.cf This simply re-builds the .cf file if either it or my .res file have been modified. It is built by taking the OI generated lines and appending my .res additions. How are other people dealing with these two common needs? 1) using non-default colors with dialogs where you can't get access to the internal widgets 2) putting resource settings in the .cf file that uib doesn't understand, and thus, doesn't preserve across saves. Thanks in advance, -- David Avraamides Goldman, Sachs & Co. (212) 357-1346 avraad@eq.gs.com