Hello all,
We are trying to create a graphical button by using
the C code from the Code Warrior. The button is being
correctly created and viewed but I need to create one
without the frame.
The only way I could go around it was to directly
access the memory pointer. thus:-
from the CtlNewGraphicControl function, I am receiving
a GraphicControlType which includes a ControlAttrType.
By directly addressing the ControlAttrType.frame, I
can enable/disable the frame.
What is happening is that it is perfectly compiling
and also, the frame IS actually being disabled but
when I run the application from the emulator, I am
getting the following warning:-
Application (1.0) just wrote to memory location
0x0000286E, which is in
the "attr" field of the frmControlObj starting at
0x00002860, which
belongs to the form starting at 0x0000268C.
The data at this memory location is owned by the Form
Manager.
Applications should not access the data directly.
Instead, they should
make the appropriate Form Manager calls.
Unfortunately, There does not seem to be any
particular function which enables / disables a frame
of a graphical button. Also, I was not able to lock
and unlock the memory handle of a GraphicControlType.
Is there any alternative method I can use to
enable/disable the frame from the source code?
Thanks a lot.
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/