I don't know how you set it up in TBmpEdit, but you have to find out
the resource ID of the bitmap. A tool I have found absolutely vital
for this kind of thing is <a
resource editor that allows you to see every .pdb on the palm, and go
in and view/edit all the resources (obviously, don't edit things in
other applications unless you know what you're doing). The syntax for
resource.open will be
--- In [hidden email], <andy@...> wrote:
> Hi all
> I'm trying to get a sample working, where I just display a resource
on the screen. My sample code is below - the problem is that the
resource.open just returns nil.
> I've tried all sorts of combinations of parameters - none of them
worked. Does anyone know how I setup a resource in tbmpedit and then
open it in Lua?
> I'm trying to get a sprite working - but the resource.draw doesn't
work either - any help gratefully received.
> Btw - I will be posting a tutorial - if I get this to work.
> Andy Stratton
> -- sprite.lua
> --also tried rn=resource.open("Rsrc",1000), etc.
> print(rn) -- prints nil