Is there a way or likely to be in the future that we can load a pdf file using AGK
and use it as a book reader as there is other software that can do this.
a>The only way I can think of doing this with the current commands is to convert to text file removing all pictures
b>Or turn the PDF into one large picture
ANY SUGGESTIONS ON MAKING A BOOK READER?
Below is some code I have been playing around with that makes use of the virtual screen it does what I wanted but now I'm more concerned about loading large masses of text preferably with pictures
// Project: MyTextScroller
// Created: 2016-02-15
// set window properties
SetWindowTitle( "MyTextScroller" )
SetWindowSize( 320, 480, 0 )
Setvirtualresolution(320,480)
CreateText(1,"AGK is cool! This is an example of some scrolling text. I am testing the abilities of scrolling text over and over.This is an example of some scrolling text.AGK is cool! This is an example of some scrolling text. I am testing the abilities of scrolling text over and over.This is an example of some scrolling text.AGK is cool! This is an example of some scrolling text. I am testing the abilities of scrolling text over and over.This is an example of some scrolling text.AGK is cool! This is an example of some scrolling text. I am testing the abilities of scrolling text over and over.This is an example of some scrolling text.AGK is cool! This is an example of some scrolling text. I am testing the abilities of scrolling text over and over.This is an example of some scrolling text.AGK is cool! This is an example of some scrolling text. I am testing the abilities of scrolling text over and over.This is an example of some scrolling text.")
SetTextSize(1,20)
SetTextMaxWidth(1,320 )
AddVirtualButton(1,296,454,50)
SetVirtualButtonText(1,"QUIT")
//Move the screen viewport to see the effect on text
while GetVirtualButtonPressed( 1 )=0
if getPointerPressed()=1
picked = 1
pX = 0
pY = getPointerY()
else
if picked>0
if getPointerState()>0
rem screen being dragged
cX = 0
cY = getPointerY()
VOX=GetViewOffsetX()
VOY=GetViewOffsetY()
//check that you arent scrolling too high or too low beyond the text (-50 allows room for buttons on the bottom)
if (VOY+(pY-cY))>0 and (VOY+(pY-cY))<(GetTextTotalHeight(1)-(480-50))
SetViewOffset(VOX+(pX-cX),VOY+(pY-cY))
endif
pX = cX
pY = cY
else
rem background dropped
picked=0
endif
endif
endif
sync()
endwhile
Thanks in Advance for any comments or suggestions
fubar