Silverfrost Forums

Welcome to our forums

hypertext stopped working

13 Nov 2022 12:35 #29614

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?

13 Nov 2022 1:25 #29615

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 .

13 Nov 2022 3:27 #29616

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.

13 Nov 2022 4:29 #29617

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.

13 Nov 2022 4:34 #29618

Thanks for the clarification.

13 Nov 2022 5:39 #29619

%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.

13 Nov 2022 9:08 #29620

A simple example is

      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.

14 Nov 2022 6:53 #29621

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?

14 Nov 2022 10:32 #29622

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.

14 Nov 2022 12:27 #29623

Sedgley

When you run the program that you posted above, does it exhibit the faillure that you have described?

14 Nov 2022 12:49 #29625

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.

14 Nov 2022 5:08 #29626

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.

15 Nov 2022 7:24 #29627

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.

15 Nov 2022 10:47 #29628

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.

16 Nov 2022 2:19 #29632

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?

17 Nov 2022 2:42 #29634

I'd note, that Microsoft almost killed Clearwin, by the way. In 1990th-beginning 2000th Microsoft Help system allowed hypertext links with the words starting with %. So the first Help for Clearwin was extremely useful to learn and adopt Clearwin which is not that straightforward to grasp. And when you learn, in advance, it is not clear if you will get any advantages besides just some flashy interface. And the older Help system was really helped you. You just clicked on specific control name, like for example %rd and it was getting you to %rd description page. And in this description article about %rd there were other links on some other related controls, say, %dd and %dl etc where you also just click and you are there. There were a lot of examples too. So the Help system was very sticky, like a good salesman, it did not allow you to leave the Help always luring you to try this and try that.

This is why the only manual i indeed RTFM was about learning Clearwin. When Help changed to current form around 2003 i stopped even to look at any new functions, all became inconvenient. In part due to that as i speculate not many new real Clearwin fans we see here over last two decades who know what is %ht, may be just you, Ken Smith and someone else. I judge that because there are a lot to improve there but no one asked about any improvements lately.

The glorious era of personal computers started 40 years ago would be much more fun and pleasant without this mediocre company started by reseller of software Bill G. Great that this inflated to the moon by orgfinances company slowly losing. It's almost kicked out of Supercomputer's Top 500 list where now overwhelmingly dominates Linux. The only what still keeps me with Windows is absence of made not through the a$$ Linux Fortran compilers. Yes, they are very fast, but very inconvenient for development, debugging and use. This is because almost no one currently realizes how many advantages GUIs like Clearwin and IDE debuggers may give to the codes. When/If FTN95 becomes also Linux compatible and add MPI parallelization, SDBG or Plato i'd move to Linux same day. Following dumb fashion of Computer Science crowd to rewrite scientific software for supercomputers from Fortran to C/C++ we used last decades the PIC codes written in C/C++. Lately on my own Linux PC i tried one code written using Fortran and can not believe still if it is cheating or not because it is so hell superfast as if Santa moved me in time into year 2050 and gave me 10,000 cores supercomputer for personal use at home. All our C/C++ codes were running every day in average 1-2 k cores for days and weeks while just the first reasonable very close to reality Fortran code variant completed on my PC ... in 5 minutes!

Please login to reply.