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 

%ac[Ins] and minus-sign and backslash NOT working

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



Joined: 01 Sep 2005
Posts: 9
Location: Denmark

PostPosted: Thu Nov 15, 2012 10:21 am    Post subject: %ac[Ins] and minus-sign and backslash NOT working Reply with quote

I have just switched to version 6.30 of FTN95 and have got the following problems (it worked in the old version 2.52):

I use %tx with a callback to get the keyboard character with clearwin_info@ ('text_array_char'), and %ac to get other keyboard input. But in the new version of FTN95 this happens:
1. Pressing the minus-sign gives the response as the Ins-key.
2. The Ins-key gives no response.
3. Backslash-key gives no response.

Point 1 and 2 worked previously, but point 3 never worked. I use a Danish keyboard layout (but don't know if it has any relevance).

I can see another user has posted the Ins-key problem in September, and it seems to have been resolved. However, I downloaded the new version in late October.

Small program to illustrate the problem:

PROGRAM TEXTEG
USE CLRWIN
IMPLICIT NONE
CHARACTER buf(60,25),att(60,25)
INTEGER I,ICTRL
INTEGER, EXTERNAL :: run,cb1,cb2
buf=' '; att=char(1)
I=WINIO@('%ac[F1]&',cb1)
I=WINIO@('%ac[Ins]&',cb2)
I=WINIO@('%60.25^tx&',buf,att,60,25,run)
I=WINIO@('%tc[blue]%ty[red]%tc[yellow]%ty[green]&')
I=WINIO@('%2nl&')
i=WINIO@('%lw',ictrl)
END PROGRAM TEXTEG

INTEGER FUNCTION cb1()
print *,'cb1'
cb1=1
end function cb1

INTEGER FUNCTION cb2()
print *,'cb2'
cb2=1
end function cb2

INTEGER FUNCTION RUN()
USE CLRWIN
ic=clearwin_info@ ('text_array_char')
print *,'ic',ic,' ',char(ic)
RUN=1
END function run
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Nov 15, 2012 8:07 pm    Post subject: Reply with quote

ClearWin+ resides in salflibc.dll so, if you have kept a copy of the old DLL then you may be able to go back to it to see if you can reproduce the old behaviour. However, %tx is one of the original controls which has not been touched for a very long time.
Back to top
View user's profile Send private message AIM Address
Erik



Joined: 01 Sep 2005
Posts: 9
Location: Denmark

PostPosted: Fri Nov 16, 2012 11:32 am    Post subject: Reply with quote

Hi Paul.
You are right that I can reproduce the old behaviour with the old salflibc.dll, and it works with the small demo-program I posted.

However, if I try to use the old salflibc.dll with my big application program, I immediately get an error message "Entry Point Not Found", that is "The procedure entry point_adjust_stack_f could not be located in salflibc.dll".
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Nov 16, 2012 4:10 pm    Post subject: Reply with quote

I will check your program to see if a recent fix for %ac solves the problem.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Fri Nov 16, 2012 4:16 pm    Post subject: Reply with quote

It works OK for me so if you are using the latest release of salflibc.dll then the bug has already been fixed and will be available in the next release.
Back to top
View user's profile Send private message AIM Address
Erik



Joined: 01 Sep 2005
Posts: 9
Location: Denmark

PostPosted: Fri Nov 16, 2012 4:31 pm    Post subject: Reply with quote

OK, hope it solves the problem.
My salflibc.dll is from May 2012. Do you know when the next release will be available?
Also: When running my small program, do you get the correct response when pressing the minus-sign?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Nov 16, 2012 5:30 pm    Post subject: Reply with quote

Yes the minus key works OK.
The next release would normally be out before the end of the year but I cannot make any promises.
Back to top
View user's profile Send private message AIM Address
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