Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!pipex!uunet!psinntp!bbnews!rsvl_ns!ernie!ernie.rsvl.unisys.com!cal1
From: cal1@rsvl.unisys.com
Subject: Q: Update a subpane w/bitmap in Smalltalk/V
Sender: news@rsvl.unisys.com (News Admin)
Message-ID: <cal1.1.0137024B@rsvl.unisys.com>
Date: Mon, 5 Dec 1994 19:05:31 GMT
Lines: 18
Nntp-Posting-Host: cal1
Organization: Unisys - Roseville, MN
X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]

I'd like some advice on how to update a window's subpane with a bitmap image 
that is stored in a file.  The subpane is a GraphPane and the pane will be 
updated with different bitmaps.  Any ideas on what I'm doing wrong would be 
appreciated.  

updatePane: aPane
   | fileName |
   fileName := ''.
   HexDictionary do: [:element |
       (element at: 3) =  selectedName
            ifTrue: [fileName := element at: 5]].
   aPane contents: fileName.

HexDictionary contains in the fifth field a string, such as 
'C:\VWIN\TUTORIAL\DOG1.BMP'.

Thanks for any ideas.
 
