---Reply to mail from Paul Erickson about Auto-starting a document in the viewer

> Sounds like a great idea to me.  I will gladly give it a try if someone can
> tell me whereabouts in viewer.c this would go <g>....

    Something like this:

--- viewer.c.orig       Sat Feb 28 10:28:22 2004
+++ viewer.c    Wed Mar  3 12:30:58 2004
@@ -220,6 +220,14 @@
             FrmDeleteForm( frm );
         }
     }
+    else {
+
+        if ( DmFindDatabase( 0, "PlkrStartup") ) {
+            StrCopy( Prefs()->docName, "PlkrStartup" );
+            Prefs()->lastForm = GetMainFormId();
+            InitializeDocInfoList();
+        }
+    }
 
     formId = GetValidForm( frmLibrary );
 
Appears to work fine.

---End reply

Christopher R. Hawks
HAWKSoft
-------------------------------------------------------------------------
'Socialism is when man exploits man, Capitalism is the reverse' 
    -- Polish Proverb





_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to