Hello,

For those who are fed up to click on arrow keys in Hyperdoc (I'm) here
is patch against Hyperdoc. This patch is for personal use and is not
documented (I know nothing about the X libraries). It adds support of
the mouse wheel (dirty hack !!!).

I insist, this patch is experimental, I just coded it in 30 minutes.
Comments and critics are welcome of course.

Greg

PS : Next thing, allow to type text when NumLock is enabled, but I will
probably not do it in the near future.
diff -Naur /home/greg/TDevel/cvs/axiom/src/hyper/event.pamphlet ./event.pamphlet
--- /home/greg/TDevel/cvs/axiom/src/hyper/event.pamphlet	2005-01-30 12:49:54.000000000 +0100
+++ ./event.pamphlet	2006-11-10 17:36:45.000000000 +0100
@@ -659,6 +666,19 @@
     HyperDocPage *page = NULL;
     char *page_name;
 
+
+    if (event->window == gWindow->fMainWindow || 
+        event->window == gWindow->fScrollWindow) {
+      if(button == 4){
+        scrollUp();
+        return;
+      }
+      else if (button == 5){
+        scrollDown();
+        return;
+      }
+    }
+
     /* find page name from sub-window handle */
 
     link = get_hyper_link(event);

_______________________________________________
Axiom-developer mailing list
Axiom-developer@nongnu.org
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to