On Tue, 7 Aug 2001, Mark F Rodriguez wrote:
> 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.
maybe there is a field specifying the "bitmap id".. which would explain
why it fails.. 3.5 added bitmaps to controls :) so, that would explain
why 3.5 and 4.0 barf.
> Any ideas?
try:
MemSet(&control, sizeof(ControlType), 0);
before you do anything with control.. it should reset everything and
set it full of NULL's :) including the bitmapID (which, NULL=none)
// az
[EMAIL PROTECTED]
http://www.ardiri.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/