This is getting really frustrating.
I recreated the mbm file from scratch with Carbide C++ 2.0. Carbide created the mbg file for me. All bitmaps are c24 format, all bitmaps have a corresponding image mask yet I still can't get it to work.
In my own test script I get KErrNotFound when trying to create the Listbox (sample below)
Code:
import appuifw
import e32
exitlock = e32.Ao_lock()
def exit_handler():
exitlock.signal()
appuifw.app.menu = [(u"Exit", exit_handler)]
appuifw.app.exit_key_handler = exit_handler
entries = []
mbm = unicode("e:\\data\\python\\vm2.mbm")
icon = appuifw.Icon( mbm ,2,3)
#icon = appuifw.Icon(u"z:\\resource\\apps\\avkon2.mbm", 28, 29)
entries.append((u"Test1",icon))
appuifw.app.body = appuifw.Listbox(entries)
exitlock.wait()
In view_mbm I get a message: "Failed to show 12 icons".
A couple of things:
1. the mbg file created by carbide does NOT contain index offsets and is different in format than the avkon.bmg file
2. the generated mbm file can be opened and all icons view correctly in MBM Whizard and in Carbide 2.0
I have no idea how to take it from here. How is everybody else generating their mbm files and are they working with 1.9.5?
raf