On Wednesday 20 April 2011 14:25:03 Shane Powell wrote: Had a quick play with this, works ok, except when the image is expanded the mouse-over is no longer accurate.
Have a think about my previous post about the 'hidden image' as the one you read off for the magnified area. I'll take a look at the code tonight when I get home. Whatever happens, even in its simple form now I think it would be nice to put into the examples for Gambas, Maybe Benoit can give us permission to do this. Regards Richard > On 19/04/11 23:55, richard terry wrote: > > On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: > > > > Ok, I couldn't resist before I went to bed, I've skipped a number in case > > you post 0.0.7 and we get confused. Hope I've sent the correct one, if > > not re- post. > > > > This now works like this. > > 1) You must load a file first > > 2) Tries to resize the picture using imagemagik (convert) and warns you > > (I hope) if that program is not on your computer > > 3) Loads the picture > > 4) Then theres a glitch, maybe fabian can help > > i) no lens appears till I click the mouse, but can't see any code there > > that does this!!!! > > ii) after the initial draw but before the lens there is a red circle in > > the top lef hand side. > > > > Other than than, once you click the mouse if works well, including the > > zoom on the mouse button, I've put smaller increments and a max/min on > > the mouse zoom. > > > > Regards > > > > Richard > > > >> On 19/04/11 20:53, richard terry wrote: > >>> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: > >>>> What do you want to do exactly Richard ? > >>> > >>> Hi Fabian > >>> > >>> I don't really want the side viewer - but the viewer with the circle > >>> around it like you drew - on the picture itself. > >>> > >>> The last version shane posted seemed more accurate in terms of the > >>> circle positioning than his earlier ones. > >>> > >>> Also zoom wise anything more than 1-2-3 times is not of any use. I > >>> tried it today just with the circular lens and using the mouse wheel to > >>> zoom up, but didn't have time to fine-tune it. > >>> > >>> Let me take the last one he posted and I'll call it 0.0.7 and we can go > >>> from there over the next few days. > >>> > >>> Had a really bad/busy day at work so am tired ++, and my gambas is > >>> playing up big time - not stopping at breakpoints, and object calls not > >>> working, odd things - goodness knows why - and I'm desperately trying > >>> to look at this tonight in the little time I have as I am dependant on > >>> my program to run my clinical practice - even though many sections are > >>> not yet finished - I had a horror start to the day when my changes last > >>> night meant I couldn't save clinical records, so i had to back track a > >>> few versions to be able to continue working. > >>> > >>> Will post some more. > >>> > >>> thanks > >>> > >>> richard > >>> > >>>> The v0.06 have Two viewer... mine and shane one ... i think you need > >>>> to choose one way. > >>>> > >>>> I you choose to have a side viewer for the lens, then draw a simple > >>>> square on the mouse move in the original picture. The square have the > >>>> size of the viewed part. It's invert proportionnal of the zoom > >>>> > >>>> > >>>> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom > >>>> 3 square = 10*10 etc > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- --- --- Benefiting from Server Virtualization: Beyond Initial > >>>> Workload Consolidation -- Increasing the use of server virtualization > >>>> is a top priority.Virtualization can reduce costs, simplify > >>>> management, and improve application availability and disaster > >>>> protection. Learn more about boosting the value of server > >>>> virtualization. > >>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user@lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> ----------------------------------------------------------------------- > >>>-- ----- Benefiting from Server Virtualization: Beyond Initial Workload > >>> Consolidation -- Increasing the use of server virtualization is a top > >>> priority.Virtualization can reduce costs, simplify management, and > >>> improve application availability and disaster protection. Learn more > >>> about boosting the value of server virtualization. > >>> http://p.sf.net/sfu/vmware-sfdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> Hi richard i had play with the scroll wheel but didn't like it much > >> because when you have a large > >> image loaded and you have scrollbars it gets a bit confusing when the > >> image scrolls around would you like me to post what i have done ? > >> > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> ------------------------------------------------------------------------ > >>------ Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Try this richard > ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user