> 1.  Is it correct that masking is done by the table object, NOT by the
> underlying field?  (Of course, if it is done by the field, I can get the
> field from the table and tell IT to mask...)

Correct. Masking is provided as a feature of tables. It can be used as part
of an implementation of the masking security feature, but need not be.

> 2.  Is the little padlock icon available as a resource on the Palm?

In Palm OS 3.5 it is available: SecLockBitmap.

> 3.  How is the masking implemented?  I would expect it to be a
> WinFillRectangle call, or maybe WinPaintRectangle.  If so, what is the
> proper pattern (0xaaaaaaaa55555555?) or draw state to use?

WinFillRectangle with CustomPatternType AA, 55, AA, 55, ...
One pixel of space is left between the bounds of the lock icon and the
masked area. The lock icon is vertically centered.

> 4.  Can I set an individual cell's item style to customTableItem when the
> remainder of the cells in that column have either a textTableItem or
> narrowTextTableItem style?  If I do so, will my drawCallback get called as
> appropriate (i.e., not get called for the cells when it is a
textTableItem,
> but get called both for customTableItem and narrowTableItem)?  The OS 3.0
> sources do NOT indicate that this would happen, but I believe them to be
in
> error on this point.

I don't know the answer to this question.

> 5.  Any other words of wisdom?

The mask feature of tables is independent from the mask feature for
security. It is often useful to combine them, but not always possible. Even
within Palm, the Memo Pad application can't use the table mask feature
because it allows dragging of records when in manual sort mode. So, you're
on the right track.

> I would also like to request Palm to, in future OS versions, allow the
> masking of table items on a cell by cell basis!!!!!!!!!

I can understand why this wasn't done. In general, rows correspond to
records, and records are either entirely masked or entirely visible. So, the
API allows you to specify which rows are masked and which columns are
masked, and it draws the intersection of these as masked. There are always
cases where the APIs are not generic enough, but in this case, it's easy
enough to do it yourself.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to