Re: [Gambas-user] Panning a picturebox inside a scrollview with mouse

2009-04-06 Thread Jesus Guardon

Many thanks Steven for your input

I have solved this issue using a drawingarea object instead a 
picturebox. I've stated than it is much less cpu consuming, because the 
image --a big world map-- I want to show, needs to be updated 
periodically by other shell command that modifies it with texts and 
lines, and must be loaded everytime. After a bit of thinking, I prefer 
don't update the map itself, and draw over it, instead. Here is what 
I've done so far; you can use the mouse to pan the image around.


#See attached project#

In the meantime I will take a look to your example, I'm sure it will be 
very helpfull.


Thanks again

Regards

Jesús

Steven James Drinnan escribió:
Hi here is an example. 


In this example, you can embed the ocphotoview into a form. It is from a
project that I am working on, so . Some of the code comes from the web
camera example.

There are some use full functions there as well.

To load a picture right click. You can select. By file or Web camera or
even from a scanner.


Once loaded you can move the picture around by left clicking.

You can easily modify the code by checking which button is pressed (but
then you will loose the menu feature.)

I hope it helps. Its a bit overloaded for what you need but it will
hopefully get you pointed in the right direction. 


If you need any help please ask.

Steven Drinnan
On Sun, 2009-04-05 at 18:00 +0200, Jesus Guardon wrote:

I need some help about this issue, because I'm unable to get it working.
What I want to do is panning a picturebox inside a scrollview when I
click RMB and move the mouse around. BTW, something usual in a lot of
graphical apps.

Can anyone help me, please?

Attached is the basic project in Gambas2, but without the picture (size 
too big to be accepted by the list)


Regards

Jesús

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user



--



___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




mapDX.tar.gz
Description: GNU Zip compressed data
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Panning a picturebox inside a scrollview with mouse

2009-04-05 Thread Jesus Guardon

I need some help about this issue, because I'm unable to get it working.
What I want to do is panning a picturebox inside a scrollview when I
click RMB and move the mouse around. BTW, something usual in a lot of
graphical apps.

Can anyone help me, please?

Attached is the basic project in Gambas2, but without the picture (size 
too big to be accepted by the list)


Regards

Jesús



mapDX.tar.gz
Description: GNU Zip compressed data
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Panning a picturebox inside a scrollview with mouse

2009-04-05 Thread Steven James Drinnan
Hi here is an example. 

In this example, you can embed the ocphotoview into a form. It is from a
project that I am working on, so . Some of the code comes from the web
camera example.

There are some use full functions there as well.

To load a picture right click. You can select. By file or Web camera or
even from a scanner.


Once loaded you can move the picture around by left clicking.

You can easily modify the code by checking which button is pressed (but
then you will loose the menu feature.)

I hope it helps. Its a bit overloaded for what you need but it will
hopefully get you pointed in the right direction. 

If you need any help please ask.

Steven Drinnan
On Sun, 2009-04-05 at 18:00 +0200, Jesus Guardon wrote:
 I need some help about this issue, because I'm unable to get it working.
 What I want to do is panning a picturebox inside a scrollview when I
 click RMB and move the mouse around. BTW, something usual in a lot of
 graphical apps.
 
 Can anyone help me, please?
 
 Attached is the basic project in Gambas2, but without the picture (size 
 too big to be accepted by the list)
 
 Regards
 
 Jesús
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


SJDSoftpicscroll.tar.gz
Description: application/compressed-tar
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user