Wicket Posted February 17, 2018 Share Posted February 17, 2018 Hi, I want to be able to view (pan around) large images on a small mobile app. I am using TUnimImage to load the image from the server file system. The screen area is too small for the image, so the screen will only show half the image (for example) What would be the best way to allow the user to pan/scroll around? Possible even zoom in and out? I have looked at using a TUnimScrollbox - but I cant seem to get it to work. Surely someone has implemented something similar - so any help/pointers/examples would be great. Thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted February 17, 2018 Share Posted February 17, 2018 Hi, What would be the best way to allow the user to pan/scroll around? Can you try with this config ?!: UnimImage -> ClientEvents -> UniEvents -> function beforeInit: function beforeInit(sender, config) { config.scrollable = true; } Link to comment Share on other sites More sharing options...
Wicket Posted February 17, 2018 Author Share Posted February 17, 2018 Hi Delphi Developer, This made no difference for my scenario Link to comment Share on other sites More sharing options...
Wicket Posted February 18, 2018 Author Share Posted February 18, 2018 Any other suggestion? I really only need a simplistic way of being able to pan, so then I can view other parts of the image on the screen, otherwise it is statically in the first of the image and cuts the rest off, with no way of viewing it. Link to comment Share on other sites More sharing options...
rgreat Posted February 18, 2018 Share Posted February 18, 2018 Javascript and handling mouse events. Link to comment Share on other sites More sharing options...
Sherzod Posted February 18, 2018 Share Posted February 18, 2018 Hi, Any other suggestion? I really only need a simplistic way of being able to pan, so then I can view other parts of the image on the screen, otherwise it is statically in the first of the image and cuts the rest off, with no way of viewing it. Ok, we will try Best regards, Link to comment Share on other sites More sharing options...
andyhill Posted February 18, 2018 Share Posted February 18, 2018 Farshad, could you add zooming in addition to the panning please. Link to comment Share on other sites More sharing options...
Recommended Posts