🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ba.windows.x
Article #103

Application-defaults: resource manager can't read widget name

#103
From: Al Whaley
Date: Mon, 20 Apr 1992 18:08
43 lines
2528 bytes
The resource manager seems to be having a problem reading my widget names in a 
line like:

*quit.fromVert: counter

where quit is the name of a command widget and counter is the name of a 
form widget.
I am aware that extra tabs or blanks after the word "counter" can have an
effect but other wise I have no idea why I am getting the error:

"Can't find widget name "counter""
(Or some thing like this, I'm afraid I'm not at my Xterminal at the moment.)

At any rate the resource manager can't seem to find "counter" defined in 
my program anywhere.  I'm sure that I have created a widget counter, and 
what's more, I'm sure that the widget "counter" was given the name "counter"
and still has it.  

the funny thing is that earlier in the App-defaults file I have the line:

*counter.foreground: red

which works perfectly.  The foreground color is changed to red.  How can the
resource manager understand the name "counter" here, but not further down
on in the file?  I have lots of other definitions of fromVert and fromHoriz
in the same file that work fine, but it seems if I move them around and 
change the references, I get errors of the same sort as the one explained above.
This is very confusing to me, and I feel appropriately humble and outraged.
The parent widget of quit is a form widget, counter has the same parent.
What am I missing?  
Please respond by e-mail or (if in the improbable event that this is a new
question) by news.

Thank you so much, 
Daniel Whaley
a rather green X programmer (in experience, not complexion)
-- 

-----
  Al Whaley                        Telephone : +1-415 322-5411
  Sunnyside Computing, Inc.        Facsimile : +1-415 322-6481
  P.O. Box 299                     Email     : al@sunnyside.com
  Palo Alto, CA 94302              Uucp      : ...!snyside!al
Technical Details
Message-ID: <y#5j__#.al@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcomsv!mork!al

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10e286,a82ab213f9062ccd,start
X-Google-Attributes: gid10e286,public
X-Google-ArrivalTime: 1992-04-20 11:08:43 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcomsv!mork!al
From: al@netcom.com (Al Whaley)
Newsgroups: ba.windows.x
Subject: Application-defaults: resource manager can't read widget name
Keywords: Application-defaults, resource manager, widget name
Message-ID: <y#5j__#.al@netcom.com>
Date: 20 Apr 92 18:08:43 GMT
Article-I.D.: netcom.y#5j__#.al
Sender: dan@sunnyside.com
Distribution: ba.windows.x
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
Lines: 43