I'm trying to dynamically draw a button (as opposed to creating a button
that can handle events) on a form and am receiving the following error
message:
MyProgram called SysFatalAlert with message: "Control.c, Line: 1859 Can't
find bitmap resource".
Below is a snippet of code (I'm aware that accessing internal data
structures is not recommended). The button frame draws OK all the time and
sometimes the entire button draws. But for some reason I can't get the
entire button to draw consistently. The problem persists on 3.5 and 4.0
debug ROMs.
Any ideas?
-Mark
control.bounds.topLeft.x = 18;
control.bounds.topLeft.y = 18;
control.bounds.extent.x = 32;
control.bounds.extent.y = 12;
// set the controls caption
control.text = "Hello";
control.attr.frame = standardButtonFrame;
control.attr.usable = true;
control.attr.enabled = true;
control.attr.visible = true;
control.attr.on = false;
control.style = buttonCtl;
control.font = stdFont;
CtlDrawControl (&control);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/