[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DocumentView confusion
[Thread Prev] | [Thread Next]
- Subject: Re: DocumentView confusion
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Sun, 16 Nov 2025 18:44:17 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 11/16/25 4:05 PM, Fabien Bodard wrote:
The Page parameter in _Layout and _Draw... is the real page number.Maybe I need to correct the Other properties to use only real page numbers and not indexing... But I'm afraid about back compatibility
In my opinion, using page indexes, versus using real page numbers, is fine. The Wiki documentation could be more clear that indexes are used.
More importantly though, it appears that FirstVisiblePage & LastVisiblePage (and their aliases) and the ShowPage display do not correctly represent the actual state of the view. As I reported yesterday:
"Document.Goto's integer parameter is obviously to be a page's index. If I use that method to go to the page at index 5, the view displays visual Page 6 of the document as it should. However, the ShowPage display says that the view is on page 5 even though only Page 6 is visible.
Also while still on the page at index 5, the value of FirstVisibleDocument is 4 while the value of LastVisibleDocument is 6. Both are incorrect."
If real page 6 (at index 5) is only partially visible, ie. not the entire page, then both FirstVisiblePage & LastVisiblePage should be 5. Shouldn't they?
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: DocumentView confusion | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| DocumentView confusion | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: DocumentView confusion | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: DocumentView confusion | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: DocumentView confusion | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: DocumentView confusion | Fabien Bodard <gambas.fr@xxxxxxxxx> |
| Re: DocumentView confusion | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: DocumentView confusion | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: DocumentView confusion | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: DocumentView confusion | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: DocumentView confusion | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: DocumentView confusion | Fabien Bodard <gambas.fr@xxxxxxxxx> |
| Re: DocumentView confusion | Fabien Bodard <gambas.fr@xxxxxxxxx> |