When determining what accesses to allow and disallow, I came up with a list of
all the fields in windows, forms, and form objects.  I then determined if there
was an API that allowed the setting or getting of each field.  If the API
existed, the direct access was disallowed.

After all that, there were quite a number of fields that weren't covered by the
API.  I then tried to make a stab at dividing those into two groups: those that
should have an API but don't, and those that don't have an API for the reason
that we don't want anyone mucking with those fields.

Needless to say, there's no hard rule for what goes into each of those two
lists. Therefore, I had to make a SWAG of my own.  When considering the
"frameType" field, I couldn't come up with a reason for wanting to change the
value of the field.  My understanding was that the value was set when the 'tFRM'
resource was created, and that it would stay that way for the life of the form.
In that case of FrmNewForm, it seems to me that -- in order to provide a
consistant user experience -- the form should be using the standard frame type
as defined by the function.

If there is a valid reason for wanting to change the frame type, then I'm open
to hearing about this (and other similar direct-access problems).  It's quite
likely that my choices in what access should be allowed and what shouldn't is
incorrect.  For that reason, I seeded Palm OS Emulator 3.1 to several developers
before releasing it (hoping to catch most problems before inflicting them on the
rest of the developer community), and allowed room in my schedule to quickly
release a Palm OS Emulator 3.1.1 that fixes these problems, if need be.

-- Keith Rollin
-- Palm OS Emulator engineer






Stephen Best <[EMAIL PROTECTED]> on 03/20/2001 10:03:47 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  Stephen Best <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/US/PALM)
Subject:  FrmSetFrameType/WinSetFrameType?



I've been going through my code trying to make it run clean with all debug
options set with POSE 3.1. Where's the API that will do this:

    win = FrmGetWindowHandle (frm);

    win->frameType.word = 0x0005;

Setting the desired frame isn't an option on FrmNewForm ...

Stephen Best
Bitware Australia





-- 
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