PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: Jeffrey Ferreira on September 27, 2024, 02:21:55 PM

Title: Mimic Ctrl + Scroll
Post by: Jeffrey Ferreira on September 27, 2024, 02:21:55 PM
Hi All,

I'm working on a program to display Delivery Pictures for a customer. I'm displaying the pics using Shell.Explorer. It is working nice except the pictures are really large. I found if I do a ctrl + scroll zoom in and zoom out. Is there a way i can do this with negative ctl's?

or maybe there is a way to fit the picture to the screen. We used shell explorer because it gives a preview of multiple docs (xml, pdf, any image, text)

thanks

jeff
Title: Re: Mimic Ctrl + Scroll
Post by: Devon Austen on September 27, 2024, 03:17:27 PM
Instead o just loading the file you can load a html file with something like

<img src="img_path.jpg" width="100%" height="100%">

this will auto size it for you.

I would also recommend using *browser instead of shell.explorer. *browser is a embedded chrome control as opposed to an embedded internet explorer control.
Title: Re: Mimic Ctrl + Scroll
Post by: Jeffrey Ferreira on September 27, 2024, 04:20:18 PM
Deven the html image link worked. i had to change the control size but it still looks good. thank you