Development 05 Jan 2018
Tackling the Paging system. I thought and come up with the current Pseudo code / Logic:
1. Load content into Buffer Text (temporarily invisible text box)
2. Find out how many Lines is displayed in the first page (Determines how many lines per page)
3. // Get the character index at the end of the Last line per page and store into another list of PageCharIndex
for (i = 1, i < 16000< i++){
a) CurrentStop = i * nLinesPerPage;
b) get CharacterIndex at the line CurrentStop
c) store CharacterIndex to PageCharIndexList
4. // Generate the substrings from the PageIndex
Substring Example from MSDN (Microsoft Developer Network)
5. Store substrings into ContentByPageList
1. Load content into Buffer Text (temporarily invisible text box)
2. Find out how many Lines is displayed in the first page (Determines how many lines per page)
3. // Get the character index at the end of the Last line per page and store into another list of PageCharIndex
for (i = 1, i < 16000< i++){
a) CurrentStop = i * nLinesPerPage;
b) get CharacterIndex at the line CurrentStop
c) store CharacterIndex to PageCharIndexList
4. // Generate the substrings from the PageIndex
Substring Example from MSDN (Microsoft Developer Network)
5. Store substrings into ContentByPageList


Comments
Post a Comment