soccer jersey forums.silverfrost.com :: View topic - hypertext stopped working
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 

hypertext stopped working
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Sun Nov 13, 2022 1:35 pm    Post subject: hypertext stopped working Reply with quote

I have an application created in August 2022 which uses the %ht code to access several pages of help for the user. It worked well.
A few days ago I discovered that clicking on a link in the help system no longer works.
To be more precise: I can get to the Main Help Screen specified by the %ht code, but clicking on a link on this screen has no effect.
The EXE file is unchanged. Any ideas what could cause this?
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1897

PostPosted: Sun Nov 13, 2022 2:25 pm    Post subject: Reply with quote

On my Windows 11 system, a few days ago Windows updated itself and after that I could not open my old help files. Apparently, Microsoft is trying too hard do kill any "legacy" help support files such as c:\Windows\winhlp32.exe .

There are third party downloads that you may consider to solve the issue, such as :

https://ssuitesoft.com/software/mswindowswinhlp32pack.htm .
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 1227
Location: Morrison, CO, USA

PostPosted: Sun Nov 13, 2022 4:27 pm    Post subject: Reply with quote

Are you using WinHelp as your base, or is this a link to an external page?

If your base is WinHelp (16 or 32 bit): The vendor software with which I write help files and turn them into HTML help (.CHM) speaks to these older forms as being deprecated at some point, and support is lacking.
Back to top
View user's profile Send private message Visit poster's website
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Sun Nov 13, 2022 5:29 pm    Post subject: Reply with quote

The help pages are provided as a Clearwin+ HYPERTEXT resource. In HTM files compiled with the Salford Resource Compiler. As per Chapter 19 of the Clearwin+ manual.
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 1227
Location: Morrison, CO, USA

PostPosted: Sun Nov 13, 2022 5:34 pm    Post subject: Reply with quote

Thanks for the clarification.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Sun Nov 13, 2022 6:39 pm    Post subject: Reply with quote

%ht is native to ClearWin+. As far as I recall there are no external engines.

Please send/post a demo program so that we can check it out.
Back to top
View user's profile Send private message AIM Address
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Sun Nov 13, 2022 10:08 pm    Post subject: Reply with quote

A simple example is

Code:

      OPTIONS(INTL,WINDOWS,IMPLICIT_NONE)
C     hypertext help screen ...
      INCLUDE <WINDOWS.INS>
      INTEGER*4 I
C
      CALL ADD_HYPERTEXT_RESOURCE@('HELPINF1')
C
      I=WINIO@('%sp&',50,50)
      I=WINIO@('%ca[Program Help]'//
     $'%tc[black]%`bg[white]%90.26ht[MAIN_HELP_SHEET]')
C
      END
C


The associated hypertext in HELP.HTM is

<HTML>
<TITLE>Main Help Screen</TITLE>
<DOC name="MAIN_HELP_SHEET">
<h1>Program Help</h1>

This help system describes the key features of the program.<BR>
<ul>
<li> <a href="RESULTS">Results Menu.</a>
</ul>
<P>
</HTML>

<HTML>
<TITLE>The Results Menu</TITLE>
<DOC name="RESULTS">
<h1>Managing your Results Files</h1>
When you press a "Save" button, the results displayed will be saved to a text
file for future reference or printing.
<P>
<ul>
<li> <a href="MAIN_HELP_SHEET">Main help screen. </a>
</ul>
</HTML>

The resource file RESOURCE.RC contains
helpinf1 HYPERTEXT help.htm

This has worked for donkey's years, but sometime after Aug 2022 it stopped working on my PC running Windows 10. i.e. clicking on Results Menu does nothing. On my old laptop with Windows 8.1 it works fine.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Nov 14, 2022 7:53 am    Post subject: Reply with quote

Sedgley

Does this program demonstrate the fault when you run it on your machine?

Which operating system are you using? Is it a 32 bit or 64 bit application?
Back to top
View user's profile Send private message AIM Address
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Mon Nov 14, 2022 11:32 am    Post subject: Reply with quote

It's a 32-bit application and I am using Windows 10.
It was working properly until a few weeks ago, when this fault appeared.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Nov 14, 2022 1:27 pm    Post subject: Reply with quote

Sedgley

When you run the program that you posted above, does it exhibit the faillure that you have described?
Back to top
View user's profile Send private message AIM Address
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Mon Nov 14, 2022 1:49 pm    Post subject: Reply with quote

Yes it does. When the mouse cursor is placed over the link it changes to a pointing hand but clicking has no effect.

However it worked correctly previously.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Nov 14, 2022 6:08 pm    Post subject: Reply with quote

Your demo program works for me on Windows 10.

I can see that there appears to be a narrow border to the "button" where the mouse becomes a hand but a click does not work. But when the mouse is moved to a more central position clicking works correctly. If this is the problem then it can be fixed.

Otherwise you could try adding a callback function (with ^) and also a grave accent (see the help for %ht) to see if a failed click triggers a callback.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Tue Nov 15, 2022 8:24 am    Post subject: Reply with quote

If all else fails, check that you are using 100% in your desktop display settings and "Scale and layout" (right click on the screen and select "Display settings"). It shouldn't make a difference but I can't think of anything else for you to try.
Back to top
View user's profile Send private message AIM Address
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Tue Nov 15, 2022 11:47 am    Post subject: Reply with quote

Changing the screen display settings didn't solve the problem.

As suggested I changed %ht to %^`ht and added a callback function. The callback was invoked only on the first entry to the hypertext system. Subsequent clicks had no effect at all.

The same executable on an old machine under Windows 8.1 works correctly. The links work and the callback function is invoked on each and every click.

It just seems to be my machine that is the problem.
Back to top
View user's profile Send private message
Sedgley



Joined: 09 Jun 2022
Posts: 13

PostPosted: Wed Nov 16, 2022 3:19 pm    Post subject: Reply with quote

I just got a message from Microsoft that an update to Windows 10 was available.

I installed the update and the problem is solved! All hypertext links in my current and historical apps are now working correctly.

Serendipity or what?
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  Next
Page 1 of 2

 
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