Silverfrost Forums

Welcome to our forums

GIF graphics

14 Nov 2007 10:47 #2434

Hi, I would like to use the %gi option and the GIF entry in the ressource script, but it is not possible to compile the ressource file. With %bm and BITMAP there is no problem. Can anyone help me? And: Are there further formats I can use in this way like JPEG or TIFF?

Thanks in advance, Wilfried

14 Nov 2007 6:16 #2442

%gi was accidentally omitted from FTN95 Version 5.10 but will be included in the next release.


-- Admin Silverfrost Limited
15 Nov 2007 8:04 #2443

Thanks! So I will wait for the new release.

Wilfried

4 May 2008 8:38 #3147

The %gi format code is still not working in FTN95 v5.20. A run-time error occurs 'Unrecognized format code - %^gi['.

Is this a known error and if yes, do you know the reason?

I plan to use the animation capability of the GIF format. Do you have a workaround instead of using the GIF format?

Wosl

5 May 2008 6:23 #3149

This should be working but you need to make sure that you are using the version of salflibc.dll that came with version 5.20 of FTN95.

If there is an older copy of the DLL on your machine then it could be found first when running your executable.

5 May 2008 6:37 #3153

Paul,

You are right. There has been an older DLL in the path which I've not detected so far. Thank you 😄

Now it's working without an error message but the behaviour is still a bit confusing because it's different for %gi versus %bm bitmap. Using %bm I can close the window with a mouse click or ALT+F4, with %gi only ALT+F4 works. I'll do some further tests.

Wosl

Here is a snapshot of sample code ...

      ...
      i=winio@ ('%ww[no_border,no_caption,no_frame,casts_shadow]&')
      i=winio@ ('%^gi[CXM_logo]',CloseCopyRight)
cc    i=winio@ ('%^bm[CXM_logo]',CloseCopyRight)
      Init=1
      return
      end
      integer function CloseCopyRight ()
      CloseCopyRight=0
      return
      end

resource file:

CXM_logo      GIF     rc\\Cxm.gif
CXM_logo      BITMAP  rc\\Cxm.bmp
4 Aug 2008 5:18 #3656

By 'left out of 5.10' do you mean 'never was included in earlier versions' ? I'm using 4.9.0, and it also refuses to admit to %gi.

Wilfried: does the standard callback 'EXIT' have the effect you want?

The problem with using a %bm is matching the background colour - for example, if the background colour is %bg[btnface], that colour depends on how the desktop is configured/themed. %gi could have a transparent background and that resolves the colour match issue.

In the absence of %gi one can use %ib where a background colour match is potentially done for you.

Eddie

Please login to reply.