You can get the boundary rectangle of the button and then erase the round frame of the button and draw whatever style of frame you desire.
Cheers, Bill MacAdam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:44 AM To: Palm Developer Forum Subject: How to set a ButtonFrameType in Palm OS 5.0? I have a control: ControlPtr pButton; pButton = ::CtlNewControl( (void**)&mFormPtr, TAB_FORM_BUTTON_MIN_ID+i, buttonCtl, tabsNames[i].CString(), i*uwWidth+1, 12, uwWidth-1, 10, ::FntGetFont(), 0, false ); ControlStyleType is buttonCtrl. The ButtonFrameType specifies the type of box and I would like to set rectangleButtonFrame but I don't know how to do it in Palm OS 5.0 (earlier it was possible to direct access to the atributes: pButton->attr.frame = rectangleButtonFrame) -- Regards, Lukasz Iwanicki -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
