<drawables>
<bitmap id="icon" x="25" y="125" filename="../../bitmaps/bt.png" />
</drawables>
I have tried many ways to load and draw this icon, and I've not found anything that works. The code I think should load and draw it is:
var bticn = Rez.BlueTooth.icon();
bticn.draw( dc );
I've also tried:
var bticn = Rez.Drawables.icon();
bticn.draw( dc );
I get various runtime errors about expecting a Method but an Object being given, etc.
Can anyone suggest the proper way to load and display a bitmap at runtime, conditionally? I have no problem getting it to draw as part of a layout, but I really need to determine at runtime whether to display it.
Thanks for any and all suggestions.
Ron