Silverfrost Forums

Welcome to our forums

%th issue with V9

17 Jan 2024 12:25 #30966

HI

I've just updated to V9 and am getting strange behaviour with the %th

(iwin= winio@('%th&',ion_off_flag) ) on some of my existing dialogues

The popup help is works but it is now adding an additional box at the bottom of the CWP window which repeats the help message.

I have seen this effect before when i forgot to add the %th to the main window (%sh,%ps style of dialogue.)

The effect only seems to occur in dialogues with %mn menu when i comment out the %mn code the additional box disappears

All of my dialogue are complicated so I will try and generate a simple example to illustrate the effect

steve

17 Jan 2024 12:41 #30968

Steve

I will aim to take a look at this when you are able to provide a simple example.

17 Jan 2024 1:12 #30969

Paul

the call the %mn [print] seesm to generate the problem

steve

  SUBROUTINE TH_TEST

c =================
IMPLICIT NONE

  INCLUDE <windows.ins>
  INTEGER ION_OFF_FLAG, ISHT1, IPRT, IWIN
  DOUBLE PRECISION VALUE

  INTEGER MENU_CB
  EXTERNAL MENU_CB
  VALUE = 1.234
        
  ION_OFF_FLAG = 1
  IPRT = 6

  IWIN = WINIO@('%ca@&amp;', 'sheet 1')
  IWIN = WINIO@('%th&amp;', ION_OFF_FLAG)
  IWIN = WINIO@('Enter value &amp;')
  IWIN = WINIO@('%?rf@&amp;', VALUE, 'enter value')
  IWIN = WINIO@('%sh', ISHT1)

  IWIN = WINIO@('%ca@&amp;', 'TH test')
  IWIN = WINIO@('%sy[3d_thin]&amp;')
  IWIN = WINIO@('%mn[edit[doit]]&amp;', MENU_CB)

c this line seems to generate the issue
IWIN = WINIO@('%?mn[[|,print...^Ctrl+P]]@@&', 'PRINTER_OPEN', + IPRT, MENU_CB, ' ', 'Print current contents')

  IWIN = WINIO@('%th&amp;', ION_OFF_FLAG)
  IWIN = WINIO@('%1ps&amp;', ISHT1)
  IWIN = WINIO@('%3nl&amp;')
  IWIN = WINIO@('%cn&amp;')
  IWIN = WINIO@('%?Bt[OK]@&amp;', 'press to end')
  IWIN = WINIO@('%ff')

  END

  INTEGER FUNCTIONMENU_CB()
  IMPLICIT NONE
  MENU_CB = 1
  END
18 Jan 2024 11:24 #30973

Steve

At the moment I don't know if your sample program demonstrates a change in how ClearWin+ displays help text.

Help text for menus (%?mn) is presented in a status bar or a %he box provided in the code. Tooltips can not be used for menu help.

When %th is supplied, help text for controls (buttons etc.) is presented as a tooltip near or above the control. When a %th is not supplied, help text is presented in a status bar or %he box.

I guess that, when both forms are employed, it might be better if the help for controls did not appear in both places, or perhaps the programmer should have a choice. But this may not be easy for us to implement.

18 Jan 2024 12:05 #30974

Hi Paul

in previous versions (8.9 and earlier) so long as there was a %th on the parent window the popup help for the %mn would appear as a popup. If a %he was used it would also appear in the the status window. If there was no %th in the parent window then a status bar would be added.

The use of popup help on %mn tools is a bit of an overkill as far as user interface facilities. my apps can support multiple languages but i also keep my popup help in English to provide a definitive description of the function to avoid potential translation issues. It appear from a quick scan of all my apps that this call to 'PRINTER_OPEN' is the only %mn that uses popup help. It is not essential so I'll comment it out for now

thanks

steve

18 Jan 2024 1:02 #30975

Steve

You would need to send me a video of that behaviour. I don't understand how a %mn help text could appear as a tooltip. Perhaps you mean something else.

Please login to reply.