Re: [AD] Proposal for a set_icon function

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Here's another proposal:

---
Rationale:
Icons are a very platform specific thing: they don't exist on some (DOS,
Linux console), they are statically attached to executables on others
(Windows), they can be dynamically attached on others (BeOS ?), they are
separate objects on others (Unixes/X)...

Proposal:
Icons management should stay a platform specific business and not be
integrated into the API. Allegro should only provide utilities on a platform
basis to ease the things.
---

For Windows: we could build a little utility/script that, when passed a dat
file containing bitmaps, will output an object file ready to be linked into
the user executable. The two main steps would be converting the Allegro
bitmap to a Windows icon then invoking the resource compiler (obviously
compiler dependent) on it to produce an object file that wraps it. We could
also make so that Allegro automatically loads the icon when it is creating
the main window.

---
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/