From: Mattia B. <mb...@ds...> - 2002-06-14 08:28:17
|
On Thu, 13 Jun 2002, James Lavery wrote: >Hi Mattia, >I want to use a toolbar with buttons in my wxWindows application. Using >wxPerl, do the bitmaps for the buttons have to be stored separately on disk, >and loaded at runtime? I know that with Tk, one can serialise the image >into application data, so avoiding the need to distribute the bitmaps >separately. You should be able to put XPMs inside the source ( XPMs are just text files ); I'll post some code when I get home. >On a similar topic, does wxPerl have the ability to use wxWindows resource >files for bitmaps (not sure which resource format is currently in vogue with >wxWindows)? There are WXR resources, but they are not supported with wxPerl ( and I have no plan to support them, unless someone else implements them ). If you are using wxWindows 2.3.x, you can use XRC, that are newer, better, supported, and support sizers & internationalization. >Continuing the topic (should probably post this to the wxWindows disc. >group), is there an appropriate resource builder I can/should use to build >resource files? For WXR there is dialoged, for XRC there is wxDesigner ( commercial ), and a Python base one that should be included in recent wxPython distributions. HTH Mattia |