View previous topic :: View next topic |
Author |
Message |
steveDoyle
Joined: 04 Sep 2009 Posts: 112 Location: Manchester
|
Posted: Wed Jan 17, 2024 1:25 pm Post subject: %th issue with V9 |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Wed Jan 17, 2024 1:41 pm Post subject: |
|
|
Steve
I will aim to take a look at this when you are able to provide a simple example. |
|
Back to top |
|
|
steveDoyle
Joined: 04 Sep 2009 Posts: 112 Location: Manchester
|
Posted: Wed Jan 17, 2024 2:12 pm Post subject: |
|
|
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@&', 'sheet 1')
IWIN = WINIO@('%th&', ION_OFF_FLAG)
IWIN = WINIO@('Enter value &')
IWIN = WINIO@('%?rf@&', VALUE, 'enter value')
IWIN = WINIO@('%sh', ISHT1)
IWIN = WINIO@('%ca@&', 'TH test')
IWIN = WINIO@('%sy[3d_thin]&')
IWIN = WINIO@('%mn[edit[doit]]&', 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&', ION_OFF_FLAG)
IWIN = WINIO@('%1ps&', ISHT1)
IWIN = WINIO@('%3nl&')
IWIN = WINIO@('%cn&')
IWIN = WINIO@('%?Bt[OK]@&', 'press to end')
IWIN = WINIO@('%ff')
END
INTEGER FUNCTIONMENU_CB()
IMPLICIT NONE
MENU_CB = 1
END |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Thu Jan 18, 2024 12:24 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
steveDoyle
Joined: 04 Sep 2009 Posts: 112 Location: Manchester
|
Posted: Thu Jan 18, 2024 1:05 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Thu Jan 18, 2024 2:02 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|