View previous topic :: View next topic |
Author |
Message |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Wed Jan 28, 2015 2:35 pm Post subject: Beta release of ClearWin+ |
|
|
We have uploaded a beta copy of salflibc.dll so that users can test out recent fixes. This is mainly for ClearWin+ but there will be the occasional fix elsewhere (e.g. run time IO).
The download is in the form of a self-extracting archive. Don't forget to create backup files before copying.
http://www.silverfrost.com/beta/salflibc.exe |
|
Back to top |
|
|
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: D�sseldorf, Germany
|
Posted: Wed Jan 28, 2015 5:40 pm Post subject: |
|
|
Paul, I start working with the new DLL and immediately I found the first funny thing:
Code: | winapp
program test
implicit none
include <windows.ins>
external results
integer*4 j,i_azim
common /angle/ i_azim
i_azim = 100
j = winio@('%ac[Esc]Azimut =%dd%^`3rd','exit',5,i_azim,
* results)
end
integer*4 function results()
implicit none
integer*4 i_azim
common /angle/ i_azim
print*,i_azim
results = 1
end
|
Using the spin wheel, the callback "results" should be activated. With the new DLL this only works if the numerical field %3rd is NOT greyed. With my old DLL this works also if it is greyed (and this must be possible).
Wilfried
Last edited by Wilfried Linder on Wed Jan 28, 2015 6:44 pm; edited 1 time in total |
|
Back to top |
|
|
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: D�sseldorf, Germany
|
Posted: Wed Jan 28, 2015 5:44 pm Post subject: |
|
|
A second funny thing:
Before, %7bt[] creates the empty button as it should look. Now, a blank must be between the brackets: %7bt[ ]. Not a serious thing, but several work in many routines.
Wilfried |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Thu Jan 29, 2015 6:02 am Post subject: |
|
|
I assume this is just a self extracting zip file rather than an installer ?
is there documentation included of what the changes are ? (I have seen you've been fixing some long-standing requests) |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Thu Jan 29, 2015 9:51 am Post subject: |
|
|
I have logged Wilfried's comments for investigation.
Yes it is a self-extracting exe with copy of the ClearWin+ enhancements included.
Windows 8.1 objects to this kind of download but I hope 8.1 users can manage. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Thu Jan 29, 2015 11:26 am Post subject: |
|
|
The regression with the spin control %dd has been fixed for the next release.
A classic case of a new fix making an old one elsewhere redundant. |
|
Back to top |
|
|
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: D�sseldorf, Germany
|
Posted: Thu Jan 29, 2015 12:35 pm Post subject: |
|
|
Thanks a lot!
Here comes the next (sorry...):
From http://www.silverfrost.com/ftn95-help/clearwinp/library/get_multiple_filenames_.aspx I've loaded the example given there:
Code: | WINAPP
INCLUDE <windows.ins>
LOGICAL L,next
CHARACTER*256 filename,filter,defpath
filter = "Free Fortran files (*.f90)"//char(0)//"*.f90"//char(0) &
//"All files (*.*)"//char(0)//"*.*"//char(0)//char(0)
defpath = char(0) !Gives the current working directory
L = .TRUE.
next = .FALSE.
DO WHILE(L)
filename = char(0)
L=GET_MULTIPLE_FILENAMES@(0,"Dialog Title",filename,256,filter,defpath,next)
next = .TRUE.
IF(L) PRINT*, trim(filename)
END DO
END |
Compiling this, I get the "error 250: you cannot assign an expression of type REAL(KIND=1) to a variable of type LOGICAL(KIND=3)". What is wrong in the example code?
Wilfried |
|
Back to top |
|
|
BILLDOWS
Joined: 22 Jul 2005 Posts: 86 Location: Swansea, UK
|
Posted: Thu Jan 29, 2015 1:42 pm Post subject: |
|
|
Hi Paul,
Pleased to report that this update seems to work fine for me using V7.1 and the new files downloaded. Tested on quite a range of programs and all OK so far.
Many Thanks
Bill |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Thu Jan 29, 2015 4:06 pm Post subject: |
|
|
Wilfried
The problem with %bt[] has now been fixed.
The last sample that you have posted is OK for me.
I have assumed that the Fortran is free and not fixed format otherwise there are line truncation issues. |
|
Back to top |
|
|
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: D�sseldorf, Germany
|
Posted: Thu Jan 29, 2015 4:16 pm Post subject: |
|
|
Paul,
once again many thanks! If it is possible to get the updated DLL it would be great.
My last posted problem seems to come from my very old compiler, version 5.50. In the "ins" files (windows.ins etc) there is no entry of get_multiple_filenames@, and the error message relates to this line.
I promise to buy a compiler update soon
Wilfried |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2834 Location: South Pole, Antarctica
|
Posted: Fri Jan 30, 2015 2:28 am Post subject: |
|
|
1) Get_dib_size@ with PNG works OK but get_dib_block@ does not display it.
2) %wp - the transparent text option over graphics background works OK, and without any changes in the current source code (i.e. without adding ~ you have mentioned) |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Fri Jan 30, 2015 8:56 am Post subject: |
|
|
Thanks Dan. Do you have a short sample for item (1)? |
|
Back to top |
|
|
steveDoyle
Joined: 04 Sep 2009 Posts: 108 Location: Manchester
|
Posted: Fri Jan 30, 2015 12:07 pm Post subject: Re: |
|
|
Paul/Wilfied
Could you clarify the exact behaviour of %dd when the associated %rd is greyed.
I would expect the %dd to have no action (variable not increment or callback activated). The whole point of greying a control is to say to the user "you cannot change this" so why provide a mechanism circumvent this?
Steve |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Fri Jan 30, 2015 2:15 pm Post subject: |
|
|
In this context the %rd is "read only" rather than disabled. The idea is that the user is only allowed to change the value via the spin control. |
|
Back to top |
|
|
steveDoyle
Joined: 04 Sep 2009 Posts: 108 Location: Manchester
|
Posted: Fri Jan 30, 2015 2:57 pm Post subject: |
|
|
Paul
I can understand your logic in the context you describe but it means that you need to put the "grey control" logic in the call back function.
A relatively easy solution (easy from a non-export viewpoint....) would be to permit the %dd to take an optional grey control
thanks
steve |
|
Back to top |
|
|
|