Ditte$2007039
Ditte

04/25/2007 :: 20:00

Registered

Hi,

know somebody a trick to find out which file is current loaded in the gdviewer?

Regards Dittmar
Ditte$2007039
Ditte

04/25/2007 :: 20:05

Registered

Sorry, I think is not enought.
I like to use the msg_OnComDblClick to start a action, but there are many views open at the same time.
So I need the filename and path.

Regards Dittmar
Loïc$2006306
Loïc

04/26/2007 :: 12:22

Registered

Hi Dittmar.

Strange question !

This information can be found only into your source code.


Regards,

Loïc
Ditte$2007039
Ditte

04/26/2007 :: 14:44

Registered

Hi Loïc,

there are many gdviewer on many views open.
I havn´t no possible way to find it out.
I thought to ask the the object and it gives me the value back.
Ok I can give the value as parameter but I would find it better to make one function for all.

Regards Dittmar
toc$2007102
toc

04/27/2007 :: 13:30

Registered

Hi Ditte, whilst you load the images record the paths in an array for now and using an array of viewers will make it fairly tidy to read, example...

'' Gdv is the viewer array.
Dim aFileName(4) As String

Private Sub LoadImage(Index As Integer, FileName As String)
aFileName(Index) = FileName '' < contains path
GDV(Index).DisplayFromFile (FileName) ''< loads to viewer
End Sub

Private Sub cmdLoad_Click(Index As Integer)
LoadImage Index, App.Path & "/test.jpg"
End Sub

Private Sub GDV_Click(Index As Integer)
MsgBox Index & " " & aFileName(index)
End Sub
Ditte$2007039
Ditte

04/27/2007 :: 15:44

Registered

Hi toc,

I will think about if I will be back.
Now I´m on the way to Barcelona for 5 days.

Thanks

Dittmar
back to forum