Page 1 of 1

I have fwh. version 10.11 -- Gif error.

Posted: Thu Jul 02, 2015 6:57 am
by yunbg1
Hi all.

DEFINE WINDOW.....
@ 337,237 GIF oGif FILE ".test.gif" SIZE 145, 35 OF oWnd ADJUST

It`s gonna be working well.


DEFINE DIALOG...
@ 337,237 GIF oGif FILE ".test.gif" SIZE 145, 35 OF oWnd ADJUST

It will happened like these error.

Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(273) in .\source\classes\DIALOG.PRG
Called from POSTER(656) in movie_net.prg
Called from (b)MAIN(348) in movie_net.prg
Called from TBTNBMP:CLICK(463) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(658) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1489) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(1450) in .\source\classes\BTNBMP.PRG
Called from _FWH(3394) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(978) in .\source\classes\WINDOW.PRG
Called from MAIN(371) in test_gif.prg

How to solve the problem ?

Re: I have fwh. version 10.11 -- Gif error.

Posted: Thu Jul 02, 2015 8:31 am
by AntoninoP
Have you tried with the init pattern?

Code: Select all

method addGif(oWnd )
LOCAL oGif
@ 337,237 GIF oGif FILE ".test.gif" SIZE 145, 35 OF oWnd ADJUST
return nil
 
then

Code: Select all

DEFINE DIALOG...
ACTIVATE DIALOG ... ON INIT addGif(Self)
 
is the dot at beginning of file name correct?

Re: I have fwh. version 10.11 -- Gif error.

Posted: Thu Jul 02, 2015 3:24 pm
by yunbg1
Thank it`s working very well.

Re: I have fwh. version 10.11 -- Gif error.

Posted: Fri Jul 03, 2015 6:41 pm
by yunbg1
ACTIVATE DIALOG oWnd CENTERED ON INIT gif_load() VALID iif( GetKeyState( 27 ), .f., .t. )

FUNC gif_load()
local oGif
@ 868, 912 GIF oGif FILE ".\test.gif" SIZE 358, 75 OF oWnd ADJUST
RETU NIL

it`s working very well.
Thank you AntoninoP.