View previous topic :: View next topic |
Author |
Message |
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: Düsseldorf, Germany
|
Posted: Wed Nov 14, 2007 11:47 am Post subject: GIF graphics |
|
|
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 |
|
|
silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Wed Nov 14, 2007 7:16 pm Post subject: |
|
|
%gi was accidentally omitted from FTN95 Version 5.10 but will be included in the next release. |
|
Back to top |
|
|
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: Düsseldorf, Germany
|
Posted: Thu Nov 15, 2007 9:04 am Post subject: |
|
|
Thanks! So I will wait for the new release.
Wilfried |
|
Back to top |
|
|
wosl
Joined: 31 Jan 2008 Posts: 30
|
Posted: Sun May 04, 2008 9:38 pm Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Mon May 05, 2008 7:23 am Post subject: |
|
|
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 |
|
|
wosl
Joined: 31 Jan 2008 Posts: 30
|
Posted: Mon May 05, 2008 7:37 pm Post subject: |
|
|
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 ...
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 |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Mon Aug 04, 2008 6:18 pm Post subject: |
|
|
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 |
|
|
|