FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour I have fwh. version 10.11 -- Gif error.
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
I have fwh. version 10.11 -- Gif error.
Posted: Thu Jul 02, 2015 06:57 AM

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
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: I have fwh. version 10.11 -- Gif error.
Posted: Thu Jul 02, 2015 08:31 AM
Have you tried with the init pattern?
Code (fw): Select all Collapse
method addGif(oWnd )
LOCAL oGif
@ 337,237 GIF oGif FILE ".test.gif" SIZE 145, 35 OF oWnd ADJUST
return nil

then
Code (fw): Select all Collapse
DEFINE DIALOG...
ACTIVATE DIALOG ... ON INIT addGif(Self)

is the dot at beginning of file name correct?
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
Re: I have fwh. version 10.11 -- Gif error.
Posted: Thu Jul 02, 2015 03:24 PM

Thank it`s working very well.

FWH User

FWPPC User

FWLinux User
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
Re: I have fwh. version 10.11 -- Gif error.
Posted: Fri Jul 03, 2015 06:41 PM

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

Continue the discussion