View previous topic :: View next topic |
Author |
Message |
Erik
Joined: 01 Sep 2005 Posts: 9 Location: Denmark
|
Posted: Thu Nov 15, 2012 10:21 am Post subject: %ac[Ins] and minus-sign and backslash NOT working |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Thu Nov 15, 2012 8:07 pm Post subject: |
|
|
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 |
|
|
Erik
Joined: 01 Sep 2005 Posts: 9 Location: Denmark
|
Posted: Fri Nov 16, 2012 11:32 am Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Fri Nov 16, 2012 4:10 pm Post subject: |
|
|
I will check your program to see if a recent fix for %ac solves the problem. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Fri Nov 16, 2012 4:16 pm Post subject: |
|
|
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 |
|
|
Erik
Joined: 01 Sep 2005 Posts: 9 Location: Denmark
|
Posted: Fri Nov 16, 2012 4:31 pm Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Fri Nov 16, 2012 5:30 pm Post subject: |
|
|
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 |
|
|
|