soccer jersey forums.silverfrost.com :: View topic - %th issue with V9
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 

%th issue with V9

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
steveDoyle



Joined: 04 Sep 2009
Posts: 112
Location: Manchester

PostPosted: Wed Jan 17, 2024 1:25 pm    Post subject: %th issue with V9 Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Jan 17, 2024 1:41 pm    Post subject: Reply with quote

Steve

I will aim to take a look at this when you are able to provide a simple example.
Back to top
View user's profile Send private message AIM Address
steveDoyle



Joined: 04 Sep 2009
Posts: 112
Location: Manchester

PostPosted: Wed Jan 17, 2024 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Jan 18, 2024 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
steveDoyle



Joined: 04 Sep 2009
Posts: 112
Location: Manchester

PostPosted: Thu Jan 18, 2024 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Jan 18, 2024 2:02 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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