Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!goldenapple.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!purdue!haven.umd.edu!hecate.umd.edu!bloom-beacon.mit.edu!gatech!csulb.edu!hammer.uoregon.edu!newsgate.cuhk.edu.hk!news.hk.net!howland.erols.net!ix.netcom.com!kthompso
From: kthompso@netcom.com (Kevin Thompson)
Subject: [VW] Associating an icon with a window, VW 2.5.1, Windows NT 4.0
Message-ID: <kthompsoE7wAGL.K68@netcom.com>
Organization: Netcom On-Line Services
Date: Mon, 31 Mar 1997 06:38:45 GMT
Lines: 42
Sender: kthompso@netcom12.netcom.com


We are using VW 2.5.1 on Window NT 4.0.  I am reading page 683 of the VW2.5.1
manual, 'Associating an Icon with a Window'.  The example as given works fine,
but almost anything else I am trying does not.  The example creates an icon by
taking a Depth1Image (CursorExample townCrier), and sending #asRetainedMedium
to that, thus creating a Mask.  It then creates an Icon by sending the
instance creating method image: with the argument that Mask.

This is all well and good, but I can't easily figure out what other objects
are appropriate for this technique.  For example, if I substitute a
Depth8Image I have in the original example, I get an error as per below; the
image's palette is a MappedPalette of ColorValues.  I've tried all sorts of
combinations of palettes (though I admit I don't understand this part of VW
very well) and images, but I can't get a Depth8Image to work.

I gather that there are limitations thus on what can be an icon for a window.
Does anyone know what those are?  Or, more interestingly, if I have a
Depth8Image is there a way of converting it to a Depth1Image that maybe will
work? 

ScreenGraphicsContext(Object)>>error:
	1] 'Palettes must match for a copyArea operation.'
ScreenGraphicsContext(GraphicsContext)>>copyArea:from:sourceOffsetX:y:destinationOffsetX:y:
ScreenGraphicsContext(GraphicsContext)>>copyArea:from:sourceOffset:destinationOffset:
Pixmap>>displayOn:at:
Pixmap(UnmappableSurface)>>displayOn:
Icon>>buildMask
Icon>>mask
ApplicationWindow(Window)>>icon:
ApplicationWindow(ScheduledWindow)>>icon:
ApplicationWindow(ScheduledWindow)>>prepareToMap
ApplicationWindow(Window)>>createSurfaceWithForcedPosition:
ApplicationWindow(ScheduledWindow)>>privateOpenForced:
ApplicationWindow(ScheduledWindow)>>openWithExtent:
ApplicationWindow(ScheduledWindow)>>open

Thanks in advance.

Kevin Thompson
kevin.thompson@integral.com
-- 
kthompso@netcom.com        
