At 12:30 PM 11/29/2000, Stuart A. Malone wrote:
>Are you suggesting that I write my own version of FrmDrawForm that skips
>over hidden tables? Hmmm... I'd never thought of that, but I suppose that
>it would work, even if it was a little messy... Don't you worry that
>different versions of the Palm OS might be doing different things in
>FrmDrawForm, and my version would fail to reproduce it faithfully?
No, I'm not suggesting that at all. I'm pointing out that if you simply erase the
table, it will be drawn again if you call FrmDrawForm, and that's pretty hard to avoid
when handling the frmUpdateEvent. Not handling this event properly will mean redraw
problems when a dialog on top of the form is closed and dynamic memory is too low to
store the bits behind the dialog.
>I tried this, but FrmDrawForm still calls TblDrawTable, which then erases
>from the bottom of the last used row to the bottom of the form. This has
>two problems. First, if the background color of the table isn't the same as
>the background color of the form, you can see the shape of the table.
>Second, it obliterates any visible form objects that were drawn before it.
I didn't think of that. I'd try setting the table bounds to have zero height.
>Why exactly does POSE object to my placing a table off the edge of the form
>in order to hide it? It seems to work fine -- so what's the problem?
It's not a supported way of hiding a form object. It may not work in the future.
--
Peter Epstein
Palm Inc. Developer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/