How makes scroll with a picture?

Find quick help here to get you started with Hollywood
User avatar
jPV
Posts: 193
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: How makes scroll with a picture?

Post by jPV » Thu Oct 11, 2018 7:36 pm

Well... eh.. I started to do some quick copypasting from my old sources few hours ago to show how I have made zooming & scrolling. I just used DisplayBrush instead of DisplayBrushPart and let Hollywood cut the image itself.. I don't know if it's slower or not, but works this way too.

Then I tuned basic PDF loading, and prev/next pages, drag&drop loading... and few other things.. so, heh.. this is starting to shape up as a real program now :P

Then I noticed that it crashed a bit like my unreleased version of RNOComics with PDFs occasionally, but now it hasn't crashed when I free the used brush myself instead of letting Hollywood to do it when loading a new brush to the same ID... I wonder if something like this is the case with my RNOComics issue.. doh. But some more testing would be needed to be sure.

Aaanyway, here's the source to look and test (remove the .txt after download):
http://jpv.wmhost.com/testi/QuiteTinyPDFViewer.hws.txt

User avatar
Juan Carlos
Posts: 452
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: How makes scroll with a picture?

Post by Juan Carlos » Thu Oct 11, 2018 9:38 pm

We work join although we make our own projects share ideas routines, etc, because we are the few Hollywood users making tools and games for Amiga systems.
Thank you for your help this weekend I'll try to add the scroll to the page.
I dont'n know if the comics in PDF has password protection but cans complicated your tool.

User avatar
jPV
Posts: 193
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: How makes scroll with a picture?

Post by jPV » Fri Oct 12, 2018 3:58 pm

I haven't made support for password protected files (yet) anywhere.. can you check somehow if a file is protected or not?

User avatar
airsoftsoftwair
Posts: 2662
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How makes scroll with a picture?

Post by airsoftsoftwair » Sat Oct 13, 2018 1:03 am

Then I noticed that it crashed a bit like my unreleased version of RNOComics with PDFs occasionally, but now it hasn't crashed when I free the used brush myself instead of letting Hollywood to do it when loading a new brush to the same ID... I wonder if something like this is the case with my RNOComics issue.. doh. But some more testing would be needed to be sure.
Maybe try it on Linux or Windows. Those are much stricter concerning memory faults than the Amigaoids. So if there is a memory access fault in Hollywood it will definitely trigger more reliably on Linux, Windows, or macOS than on MorphOS :)

User avatar
Juan Carlos
Posts: 452
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: How makes scroll with a picture?

Post by Juan Carlos » Mon Oct 15, 2018 6:08 pm

Again thank you for your code, I like it, because it is easy to understand. And as idea to use the arrows keys to go the first and last page, because this is available in all Amiga systems.
Other thing the third mouse button under MorphOS is use for the OS.

User avatar
jPV
Posts: 193
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: How makes scroll with a picture?

Post by jPV » Sat Oct 20, 2018 1:53 pm

Juan Carlos wrote:
Mon Oct 15, 2018 6:08 pm
Again thank you for your code, I like it, because it is easy to understand. And as idea to use the arrows keys to go the first and last page, because this is available in all Amiga systems.
Other thing the third mouse button under MorphOS is use for the OS.
I modified it quite a bit recently, I guess I'm going to release it at its own program under RNO#? label after all :) I added zooming with long left press or with CTRL keys too, and several other things. BTW. default MorphOS installation doesn't do anything with the third mouse button I think, maybe you have some functionality with Chrysalis pack or so?

Here's the current source code:
http://jpv.wmhost.com/testi/RNOPDF.hws.txt

Gotta try these things in Linux/Windows, and in RNOComics, in coming days... but so far it's been more fun to write new stuff :P

User avatar
Juan Carlos
Posts: 452
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: How makes scroll with a picture?

Post by Juan Carlos » Sun Oct 21, 2018 3:07 pm

jPV wrote:
Sat Oct 20, 2018 1:53 pm
Juan Carlos wrote:
Mon Oct 15, 2018 6:08 pm
Again thank you for your code, I like it, because it is easy to understand. And as idea to use the arrows keys to go the first and last page, because this is available in all Amiga systems.
Other thing the third mouse button under MorphOS is use for the OS.
I modified it quite a bit recently, I guess I'm going to release it at its own program under RNO#? label after all :) I added zooming with long left press or with CTRL keys too, and several other things. BTW. default MorphOS installation doesn't do anything with the third mouse button I think, maybe you have some functionality with Chrysalis pack or so?

Here's the current source code:
http://jpv.wmhost.com/testi/RNOPDF.hws.txt

Gotta try these things in Linux/Windows, and in RNOComics, in coming days... but so far it's been more fun to write new stuff :P
Thank you for your new help file, I have problems with the page/brush rotated with the zoom don't get the brush rotated.
Also I'm working with the PDF with password protection, I got open them after of ask the password, the problem is that GetAtribute hasn't all options needed because to open the documents directly and the get directly the other PDF properties, print, writable, etc.m
I want add these options as help when you make a PDF document for example with OWB and you can put not printable or not rewrite,
The third button I saw under MorphOS don't use this for its things.
Agains thank you for your help.

User avatar
Juan Carlos
Posts: 452
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: How makes scroll with a picture?

Post by Juan Carlos » Sun Oct 21, 2018 8:56 pm


Post Reply