eBook - Two Boxes - Manage spillovers - {Resolved}
I am trying to make a simple e-book reader. The contents are in an XML file and I was thinking of using two picture boxes or RTBs to simulate the two pages of a normal book. I am reading the contents Chapter by Chapter.
As I cannot use Scroll Bars, how do I code such that any spillover from one page goes to the next page and also hold display of text if the Chapter is more than two pages long? I would also like to make the font and "page size", i.e., size of the RTB or Pic Box, variable.
Hope I was clear
TIA
Regards
KayJay
Last edited by KayJay; May 15th, 2003 at 06:09 AM.
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Thanx for the hint. Managed to get it working. Am using picBoxes as RichText ones do not have TextWidth and TextHeight props. So setting fonts is going to be some work.
Thanx a lot
Regards
KayJay
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Sastraxi: Almost through! Had a tough time with <center> tags and bitblting inline images. Got that done as well. Thanx a lot again for that early pointer. Saved me a lot of knuckle cracking Should be ready pretty soon for deployment. Unfortunately I can't post what I coded as its for a client of mine.
Thanx again
Regards
KayJay
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
In fact the book will be available for public download shortly we can release the code should we choose to, as this reader is our own value addition and the books' contents are already available on their website for everybody to see. But nevertheless, its only fair to get their permission since they have paid us to develop it.
And as for the centering code. Here is a sample I had posted to help another VBFer out. Yeah! I did that! posted here
VB Code:
Private Const strData As String = "This is a sample text that should perhaps run " & _
"into more than three lines depending on the font " & _
"that is used to display the text in this picturebox." & _
"The technique I would suggest is to read this text into a " & _
"variable and split by a space and then print onto this " & _
"picture box depending on the position of the current " & _
"pixel in relation to the current font's TextHeight and/or TextWidth"
Sastraxi: Thank you very much And I may be able to post the code soon.
CodeRonin:
If you mean the application - It is a compiled application where the book's contents are painted onto the screen to simulate reading of a normal paper book, and flipping its pages backwards or forwards. We wanted to do it mainly for portability; the text and images can be included as resource files, so only one file, the compiled EXE needs to be distributed. The second reason is to maintain data integrity and protect against plagiarism. No Cut-Copy-Paste, and editing of the text is possible. At least its not very easy.
If you mean the contents of the book - To learn more of Sri Ramchandra's Pranahuti Aided Meditation, visit http://www.sriramchandra.org
Yes, we developed that website and are hosting it as well.
Yes, I am very intereseted, though I have not yet initiated myself into that particular system. But I will eventually, if only because its in my blood
Should you be interested, you could communicate with the Institute straight from the Website. Off my head, I do not know of a training centre in Austria yet, but that is never a hindrance in such matters.