All, While testing one of my programs (AsciiChart) w/ the PalmOS 3.5 debug ROM, which, as documented, ignores the saveBehind bit on forms & alerts, I've run into the following problem. My program draws a custom table (a table w/ customTableItems and a CustomDrawProcedure) on its main form. If I popup a dialog which overlaps the table on the main form, and then popup another larger dialog (eg, an alert or tips dialog) on top of the first dialog, after dismissing the second dialog, the table redraws on top of the first dialog. My program doesn't handle frmUpdateEvents (these events are passed through unhandled by my form event handlers). The problem seems to be that the main form receives its frmUpdateEvent after the overlaying dialog receives its frmUpdateEvent. The main form's frmUpdateEvent makes its way through my event handler to FrmHandleEvent, which calls FrmDrawForm, which, after correctly redrawing most elements of the form (labels, buttons, etc), then calls my custom table draw procedure to redraw the table. However, my CustomDrawProcedure then blindly draws on top of the dialog (using Win* drawing routines, eg, WinDrawChars, WinCopyRectangle, etc). How do I determine the visible portion of the main form so that drawing can be restricted to just this area by my custom table drawing routine? John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
