Silverfrost Forums

Welcome to our forums

%th, ms_style and Win 7

5 Jul 2011 3:29 #8517

If I use %th, thus:

       IA=WINIO@('%th[delay]&', 1, 300)

then help information works in XP or Win7 if the help string is spread over two lines with spliced-in //CHAR(10)// like this:

       IA=WINIO@('%?3.1ib[coloured'//WIDTH//']'
     &                  //'[Create a new survey data set]'
     &                  //'[Open an existing data set'//CHAR(10)
     &                  //'to edit or plot it]'
     &                  //'[Save current survey'//CHAR(10)
     &                  //'data to a disk file]&',
     &                    'NEW/New file',    LBAR(1),  NW_FUNCTION,  
     &                    'OPEN/Open file',  LBAR(2),  File_Opener, 
     &                    'SAVE/Save file',  LBAR(3),           
     &                    'FILE_OPENW', filenm,   File_FUNCTION)

WIDTH is either const_width if the screen is < 800 characters across, or '' if more, and I can't remember why. If I add ms_style, e.g.

       IA=WINIO@('%th[delay,ms_style]&', 1, 300)

then in Windows 7 (and using FTN95 6.10) the help string is truncated at the CHAR(10) without any error or other message. Looks good, but isn't helpful (no pun intended).

Anyone know a workaround?

Eddie

6 Jul 2011 5:53 #8520

As a wild guess try CHAR(10)//CHAR(13) in place of CHAR(10).

6 Jul 2011 7:41 #8521

Hi Paul,

Tried that, and no, it doesn't work - only the first line of the help string shows. In any case, why would CHAR(10) work without ms_style (which it does)?

//CHAR(10)//CHAR(13)// works as well as //CHAR(10)// on its own without ms_style.

Regards

Eddie

Please login to reply.