On Sat, Dec 21, 2002 at 08:15:16PM -0700, Adam McDaniel wrote:
> ViewTable() would actually become something like LoadTable(),
> and its call to WinCopyRectangle() would have to be moved off to
> tableform.c, in which case the penup/down/move events would be handled
> from there.

Let me explain it a little better, and show you what I changed to have
images displayed in their own form...

--- document.c  11 Dec 2002 15:33:30 -0000      1.67
+++ document.c  22 Dec 2002 04:56:29 -0000
@@ -1006,7 +1006,9 @@
                     AddToHistory( recordId );
 
                 metaRecord  = GetMetaHandle( recordId, true );
-                status      = ViewTbmp( record, newPage );
+                status      = LoadTbmp( record, newPage );
+                if ( status == true )
+                    FrmPopupForm( frmImage );
                 break;
 
             case DATATYPE_TABLE:

So, from that LoadTbmp() is almost exactly like ViewTbmp except I
removed the final call to WinCopyRectangle(). When frmImage loads it
calls for osWindow (which was made globally via a function in image.c)
and handles the drawing/panning from there. Because of that,
DoImageMove() was moved from image.c to the new imageform.c

That's more or less all that has changed, except now we have specific
control over the pen events so that they can be handled properly.

The same thing may need to be done on your side later on. For now keep
on working on what you've been doing and when I've got my side ready
we'll collaborate to get this to work properly (under all the newer
Palm OS5 devices)

-- 
Adam McDaniel
Array.org
Calgary, AB, Canada
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to