A second tutorial: icon
editor
Part 1 Menu
creation
This tutorial makes a simple
wxWidgets program to edit XPM and ICO format files (often used for
icons and toolbars)
- Run wxhatch and choose the
compiler you have (Choose | Select external
Compiler)
- Choose File | New project
select drawing mode and give the project a name, eg
xpmedit.
- A skeleton code is produced which
can be compiled (Run | Make) and then executed
(Run|Run)
Add menu Items
- Change to the MenuZone window
(File | Show menu, Ctrl-U) and choose Add Menu | File menu:
this gives a full File menu
- Use Add Menu | New menu to
create a second Menu (&Select) containing the command
&Color, and a third one (Help) with an item labelled &About
If you have done the simple tutorial, these items are proably in
the drop down combo boxes already
- Use Change menu properties
to rename the New menu item to &New 16x16 - this is the size of
toolbar bitmaps; you may like to add an accelerator, eg Ctrl +
N
- Insert a menu item after New 16x16
by selecting (clicking once) it, then choosing Add Menu | Add Item.
Call the new item Ne&W 32x32 - the size of window
icons
- The window should look like this
(click for larger view)
Next
wxHatch
Home 