> I am trying to display a group of bitmap push buttons. It works 
> except the awful frame. Can somebody tell me how to remove the 
> frame?

it has never really been a request to do this *g*

> Attribute NOFRAME seems to be ignored.
> 
> I searched the official documentation, but the only notion concerning 
> the button frame (ButtonFrameType) is in the ControlAttrType structure 
> and Palm discourages direct access to it.

i see that a PUSHBUTTON is a control, and, all controls have borders :)
so, technically, it is possible to do :) looking at PilRC sources now..
i noticed this is an error in the pilrc docs, all control's should have
the ability to have a border defined or not (regardless if you may use it)

pilrc.c
---
      case rwBTN:                               /* button */
        ParseItm(&itm,
                 ifText | ifId | ifRc | ifUsable | ifEnabled | ifFont |
                 ifAnchor | ifFrame | ifBigMargin,
                 if2Graphical | if2BitmapID | if2SelectedBitmapID, if3Null,
                 if4Null);
        goto Control;
      case rwPBN:                               /* pushbutton */
        ParseItm(&itm,
                 ifText | ifId | ifRc | ifUsable | ifEnabled | ifFont |
                 ifAnchor | ifGroup | ifSmallMargin | ifFrame,
                 if2Graphical | if2BitmapID | if2SelectedBitmapID, if3Null,
                 if4Null);
        goto Control;
---

it most definately can handle a frame definition - so, lets dig a bit
further - down to the ParseItm routine.

---
      case rwFrame:                       /* BUG! other frame types */
      case rwNoFrame:
        CheckGrif(ifFrame);
        pitm->frame = tok.rw == rwFrame;
        break;
---

nope.. it should work :) but, i really dont like this "==" statement here
it could give some weirdo effects if the booleans are not 0 or 1. but,
it should set everything as needed. have you tried looking at the binary
produced? it will be very easy to define an empty form with just one
control (using same numbers everywhere), only diff is the use of NOFRAME
and, see if the two form binaries differ in any way.

if they do, then, the bit is being set :) and, maybe the OS doesn't 
look at the attribute when drawing the control?

---
Aaron Ardiri                           [EMAIL PROTECTED]
CEO - CTO                                              +46 70 656 1143
Mobile Wizardry                         http://www.mobilewizardry.com/

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

Reply via email to