Autopanning ?

Stefano Mancini (mancini@galileo.pi.infn.it)
Fri, 22 Nov 1996 18:04:42 +0100

To subscribers of the xforms list from Stefano Mancini <mancini@galileo.pi.infn.it> :

Dear xformers,
I have a problem with Canvas Object.
Now I'll try to explain which is the problem.

I have design with XForms a graphical tool for programming DSP (Digital
Signal Processor) . This program have a design entry in which the user
can manage objects and link toghether with connections, namely lines.
The objects are vectorial description of a bitmap. I have allocate for
the Canvas object private colormap.

The Design entry is a Canvas Object with certain dimensions. I choose
this dimension GREATER than the one of the form in which the canvas is
embedded.

With the movement of the mouse inside the canvas object i need to move
the Canvas, but not the form, of a fix amount until a side of the canvas
is reached (this thing is what I call "Autopanning")

The problem that I found is flashing on the screen and incorrect redraw
of the graphic informations .

I have connect a routine to the Motion Event for the canvas that moves
the coordinates (x,y) of the origin of the canvas (so the dimension
(w,h) is always fixed), this routine updates the coordinates of the
origin of the canvas and then force a redraw.

Can someone of us help me ?

Regards.

S.Mancini

To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html