[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pnet-developers] SystemIcons
From: |
Rhys Weatherley |
Subject: |
Re: [Pnet-developers] SystemIcons |
Date: |
Tue, 14 Dec 2004 08:25:04 +1000 |
User-agent: |
KMail/1.4.3 |
On Tuesday 14 December 2004 04:32 am, Deryk Robosson wrote:
> The first route would be to have external images in
> $PNETBASEDIR/share/icons (or whatever the filesystem standards is on the
> day) path and load them when required.
The default versions of the icons should be embedded into the resource section
of System.Drawing.dll (overrides for user-specific icons should be handled
via resources, not a separate filesystem mechanism).
We actually already have the icons, but dummy that I am, I put them into
System.Windows.Forms instead (to support MessageBox) because I completely
forgot about SystemIcons.
The easiest thing to do would be to move the icons down into System.Drawing
and modify MessageBox to use SystemIcons. See the Forms *.build file for
details on how to embed an icon resource into an assembly. And the
MessageBox class (search for "hand.ico") for the details on how to load such
icons at runtime.
Cheers,
Rhys.