Hello all,

I am trying to programmatically create a graphical button with the 
CtlNewGraphicControl funciton.  The button is being correctly created but I need to 
remove its frame.

The only way I found 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, I did not find any possible functions which enable / disable the frame 
of a button from the manuals and I have tried locking the memory before writing 
without any success.

Is there any alternative method I can use to enable/disable the frame programmatically.

Thanks a lot.

-- 

_______________________________________________
Get your free email from http://www.mail.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to