On 1/15/07, Felix E. Klee <[EMAIL PROTECTED]> wrote:
> We'd like to write a program that can interface with a Graphire pen in
> extension mode, just as the Gimp.  To be more specific: In our program
> the pen's cursor should be restricted to the programs main window.  It
> should not be possible to move it over the enitre screen.  The program
> should display an array of buttons, and when the user clicks on a
> button, something should happen.

Restrict cursor to a specific window means mapping the tablet to a
specific area of the desktop, or screen mapping as we call it. Except
mapping tablet to a specifc screen in multimonitor setup,  we don't
suppot screen mapping yet.  I can see a workaround for your case.  You
could use tablet mapping to do the job - mapping (most) part of the
tablet to the desktop.  You can just leave an edge, say right side
edge of your tablet, unmapped so cursor would not move when you move
in that area.  In your program, open your buttons window when tools
(Wacom stylus or mouse) are in that area.  If you don't know what
tablet mapping is or have never used the options TopX/Y and BottomX/Y
for your tablet, please let me know.  I'll update your xorg.conf so
you can see what I mean.

>
> What tools do you recommend to realize such a simple program?  Should we
> simply use GTK+? Where do I find up to date documentation?

With the current working Gimp, I don't see whay you can not use GTK+.
But I don't have experience in this area.

>
> I already checked out "tkxinput" [1] as I like to program GUIs in
> TCL/TK.  However, "tkxinput" doesn't seem to work with current X and/or
> TK releases.  While I could successfully install it (after slightly
> modifying the Makefile), the included tool "calibration" doesn't work.

Please take a look under linuxacom/src/wacomxi.  My wacomcpl (tcl/tk
based) was derived from tkxinput.  Calibration works there.

Ping

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linuxwacom-discuss mailing list
Linuxwacom-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Reply via email to