My code in frmOpenEvent section
looks like --

  ControlType* ctl = (ControlType*)FrmGetObjectPtr(formP,
FrmGetObjectIndex(formP, MainOption1GraphicPushButton));
  CtlGlueSetFrameStyle(ctl, noButtonFrame);
  FrmDrawForm(formP);

But, on FrmDrawForm the buttons and their borders are drawn. I've run
this on the emulator and the simulator with the same results.

It looks like you are using a graphic push button, which begs the
question why you ever set it for a border anyway.  So why not simply
remove the button frame in the resource editor?

By the way, the code looks valid.

I'm taking one more crack at trying to get CtlGlueSetFrameStyle to work with my code before switching from Constructor to the resource editor. I dragged "PalmOSGlue.lib" into my "Resources" folder in CodeWarrior (where it was installed in Segment1) and include "CtlGlue.h" in the files that use CtlGlueSetFrameStyle. Everything compiles and runs fine (except that my pushbutton borders are not being removed).

One odd thing is the function calls to CtlGlueSetFrameStyle are not shaded blue, like all my other function calls that CodeWarrior recognizes as valid functions. It compiles fine, but its weird that its the only function in my app that is colored black, like my variables, etc. Is this typical of Glue calls or a sign that I did not install Glue correctly?

Thanks
Rich

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

Reply via email to