03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mpfile Specifies the location of the multibitmap file. Here we use a special case of<br />

"*", which is described in more detail below.<br />

bmpid The enum for the relevant bitmap, defined in the generated .mbg file.<br />

bmpmask The enum for the corresponding bitmap mask, also defined in the .mbg<br />

file.<br />

The asterisk used for each bmpfile argument is shorthand (in these circumstances only)<br />

for 'my own .mbm file'. For this to work, your .mbm file must have the same name as your<br />

.app file and be installed in the same folder. This works for us because we deliberately<br />

constructed our.mbm to follow these conventions by calling it Hellogui.mbm in the project<br />

specification file, HelloGui.mmp. Under the emulator, the icon is always placed in the same<br />

folder as our .app file but, as we shall see later, you must be careful to install it in the right<br />

place on the target phone.<br />

It's possible to specify other .mbm files within the bmpfile statement as well, but you have<br />

to supply the full file path in order to do so. Some potentially useful ones are the UIQ's own<br />

System MBMs – such as qikon.mbm, quartz.mbm and eikon.mbm. These files are<br />

located in Z:\System\Data and their corresponding .mbg files are in \epoc32\include.<br />

These bitmaps include icons for arrowheads<br />

used on scrollbars, bold/italic/underline symbols, various other arrows, application icons,<br />

background textures, and more.<br />

14.1.4 Building the Application<br />

After making all the necessary changes to the resource file, you can finally rebuild the<br />

HelloGUI application using the – by now familiar – bldmake and abld commands.<br />

From a command prompt, move to the \scmp\HelloGUIfull\Groupdirectory and type:<br />

abld reallyclean<br />

to remove any files that might have already been built from the previous version of<br />

HelloGUI. Then, type:<br />

bldmake bldfiles<br />

to create new build files incorporating the new bitmap build and resource information. Finally,<br />

use the abld command to rebuild the full application to be tested in the emulator, in Figure<br />

14.4.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!