I have fwh. version 10.11 -- Gif error.

Post Reply
yunbg1
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

I have fwh. version 10.11 -- Gif error.

Post 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 ?
FWH User
FWPPC User
FWLinux User
AntoninoP
Posts: 347
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

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

Post 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?
yunbg1
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

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

Post by yunbg1 »

Thank it`s working very well.
FWH User
FWPPC User
FWLinux User
yunbg1
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

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

Post 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.
FWH User
FWPPC User
FWLinux User
Post Reply