[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DocumentView confusion


Il 16/11/25 15:09, Gianluigi ha scritto:
Hi Fabien, gbWilly, and Lee,

I apologize for the intrusion, but to better understand you (us), I posted Fabien's test project here:
https://paste.c-net.org/UrgencyPulse
I used an old lecture by Professor Hans and incorporated it into the project.
It contains indexes, so I think the PDF is suitable.

For example, one question for Fabien could be this:

Public Sub Button1_Click()

  If (Val(TextBox1.Text) - 1) < 0 Then
' Assuming that FirstVisibleDocument and FirstVisiblePage are the same thing,
    ' why doesn't dv[dv.FirstVisiblePage].EnsureVisible do this?
    dv[0].EnsureVisible
  Else If (Val(TextBox1.Text) - 1) >= dv.Count Then
' Assuming that LastVisibleDocument and LastVisiblePage are the same thing,
    ' why doesn't dv[dv.LastVisiblePage].EnsureVisible do this?
    dv[dv.Max].EnsureVisible
  Endif


End

Regards
Gianluigi


Follow-Ups:
Re: DocumentView confusionLee <t.lee.davidson@xxxxxxxxx>
References:
DocumentView confusiongbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: DocumentView confusionLee <t.lee.davidson@xxxxxxxxx>
Re: DocumentView confusiongbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: DocumentView confusionLee <t.lee.davidson@xxxxxxxxx>
Re: DocumentView confusionFabien Bodard <gambas.fr@xxxxxxxxx>
Re: DocumentView confusiongbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: DocumentView confusionGianluigi <gradobag@xxxxxxxxxxx>