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 

Beta release of ClearWin+
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


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

PostPosted: Wed Jan 28, 2015 2:35 pm    Post subject: Beta release of ClearWin+ Reply with quote

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
View user's profile Send private message
Wilfried Linder



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

PostPosted: Wed Jan 28, 2015 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Wilfried Linder



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

PostPosted: Wed Jan 28, 2015 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 597

PostPosted: Thu Jan 29, 2015 6:02 am    Post subject: Reply with quote

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


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

PostPosted: Thu Jan 29, 2015 9:51 am    Post subject: Reply with quote

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


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

PostPosted: Thu Jan 29, 2015 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Wilfried Linder



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

PostPosted: Thu Jan 29, 2015 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
BILLDOWS



Joined: 22 Jul 2005
Posts: 86
Location: Swansea, UK

PostPosted: Thu Jan 29, 2015 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Thu Jan 29, 2015 4:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wilfried Linder



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

PostPosted: Thu Jan 29, 2015 4:16 pm    Post subject: Reply with quote

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 Wink

Wilfried
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 1620
Location: South Pole, Antarctica

PostPosted: Fri Jan 30, 2015 2:28 am    Post subject: Reply with quote

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


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

PostPosted: Fri Jan 30, 2015 8:56 am    Post subject: Reply with quote

Thanks Dan. Do you have a short sample for item (1)?
Back to top
View user's profile Send private message
steveDoyle



Joined: 04 Sep 2009
Posts: 58
Location: Manchester

PostPosted: Fri Jan 30, 2015 12:07 pm    Post subject: Re: Reply with quote

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


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

PostPosted: Fri Jan 30, 2015 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
steveDoyle



Joined: 04 Sep 2009
Posts: 58
Location: Manchester

PostPosted: Fri Jan 30, 2015 2:57 pm    Post subject: Reply with quote

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
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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