My code is fairly simple (the IMAGE version worked perfectly):
- Code: Select all Expand view RUN
- LOCAL aPath:={}, oDlg, oImages, oGet, CText[3]
IF Fill_Images( aPath) //Search all user images "JPG"
cText[1]:=1
cText[2]:=LEN(aPath)
cText[3]:=""
DEFINE DIALOG oDlg RESOURCE "diaporama" ;
TITLE "Exa Pedigree: Photo album Bulls"
REDEFINE XIMAGE oImages ID 101 OF oDlg
REDEFINE GET oGet VAR cText[3] ID 102 OF oDlg UPDATE READONLY
REDEFINE BUTTON ID 504 OF oDlg ACTION Next_Img( @oImages, @cText, @oDlg, @oGet, aPath )
REDEFINE BUTTON ID 503 OF oDlg ACTION Prev_Img( @oImages, @cText, @oDlg, @oGet, aPath )
REDEFINE BUTTON ID 501 OF oDlg ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTER ON INIT (HB_SYMBOL_UNUSED(self), ;
Img_Update( @oImages, @cText, @oDlg, @oGet, aPath))
ELSE
MsgStop("No available photos","No photos")
ENDIF
...
STATIC FUNCTION Img_Update( oImages, cText, oDlg, oGet, aPath )
oImages:SetSource( aPath[cText[1]] )
oImages:Refresh()
cText[3]:=cFileName( aPath[cText[1]] )
oGet:REFRESH()
oDlg:UPDATE()
RETURN NIL
Something simple that I am doing wrong here?
Thanks
Emiliano Llano Díaz