forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GIF graphics

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: Düsseldorf, Germany

PostPosted: Wed Nov 14, 2007 11:47 am    Post subject: GIF graphics Reply with quote

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
Back to top
View user's profile Send private message
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 191
Location: Manchester

PostPosted: Wed Nov 14, 2007 7:16 pm    Post subject: Reply with quote

%gi was accidentally omitted from FTN95 Version 5.10 but will be included in the next release.
Back to top
View user's profile Send private message Visit poster's website
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: Düsseldorf, Germany

PostPosted: Thu Nov 15, 2007 9:04 am    Post subject: Reply with quote

Thanks! So I will wait for the new release.

Wilfried
Back to top
View user's profile Send private message
wosl



Joined: 31 Jan 2008
Posts: 30

PostPosted: Sun May 04, 2008 9:38 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7923
Location: Salford, UK

PostPosted: Mon May 05, 2008 7:23 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
wosl



Joined: 31 Jan 2008
Posts: 30

PostPosted: Mon May 05, 2008 7:37 pm    Post subject: Reply with quote

Paul,

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

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 ...

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:
Code:

CXM_logo      GIF     rc\Cxm.gif
CXM_logo      BITMAP  rc\Cxm.bmp
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Aug 04, 2008 6:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group