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 

Another ClearWin+ beta
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


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

PostPosted: Sat Aug 03, 2013 4:35 pm    Post subject: Reply with quote

I have isolated the problem but, at the moment I don't know how to fix it.

First you press and then release the ALT key and this activates the main menu. Then you press the key for the first character of a menu item in order to select it. If you precede a character with an ampersand then this marks the key to use and the ampersand is required when the character is not the first in the name.

This works correctly without %em and it also works with %em provided %em is used without options. Also this works with %em[options] for the main menu bar but not for sub menus (nor popup menus?).

Unless it can find a fix, we will have to take this as a limitation of %em. That is, ALT followed by a key press does not work for sub menus and %em with options.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 07, 2013 6:31 am    Post subject: Reply with quote

I have managed to fix this problem (with menu accelerators) and I have uploaded a new 32 bit beta to http://www.silverfrost.com/beta/salflibc.exe.
Back to top
View user's profile Send private message AIM Address
Borrmann Manfred



Joined: 29 Mar 2007
Posts: 28

PostPosted: Mon Aug 12, 2013 4:15 pm    Post subject: Re: Reply with quote

PaulLaidler wrote:
I have managed to fix this problem (with menu accelerators) and I have uploaded a new 32 bit beta to http://www.silverfrost.com/beta/salflibc.exe.


Thank you for your help, Paul. In the meantime i have found another tiny problem with the new dll's. Using the option "left_align" with %th does not work any longer.
Back to top
View user's profile Send private message
Borrmann Manfred



Joined: 29 Mar 2007
Posts: 28

PostPosted: Mon Aug 12, 2013 5:08 pm    Post subject: Reply with quote

Line color for the outer rectangle of an named %ob box is now identical with the text color for its top line. Is this the plan, Paul?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Aug 12, 2013 5:45 pm    Post subject: Reply with quote

Yes. I thought that this was more natural.
Back to top
View user's profile Send private message AIM Address
Borrmann Manfred



Joined: 29 Mar 2007
Posts: 28

PostPosted: Tue Aug 13, 2013 9:26 am    Post subject: Reply with quote

The option "left_align" in the format code %th does work in some dialogs. But in other dialogs which are very similiar the option is not working with the new dll's. Any idea, Paul?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Aug 13, 2013 9:45 am    Post subject: Reply with quote

%th[left_align] has not changed. It only affects multiline tooltips.

Your query has highlighted a problem with %th[ms_style] which was not accepting multiline tooltips (only displaying the first line).

This has now been fixed but, with [ms_style], multiline text is always left-aligned and the option [left_align] is ignored.
Back to top
View user's profile Send private message AIM Address
Borrmann Manfred



Joined: 29 Mar 2007
Posts: 28

PostPosted: Tue Aug 13, 2013 1:28 pm    Post subject: Reply with quote

Paul, in the meantime i have found my mistake. It seems to me that dialogs can't have other %th options than the parent dialog. Otherwise i can see for instance two different tooltips at the same time.
Back to top
View user's profile Send private message
Borrmann Manfred



Joined: 29 Mar 2007
Posts: 28

PostPosted: Tue Aug 13, 2013 1:47 pm    Post subject: Reply with quote

I have made a short program to show the strange effect. Press the "Show" button in the first appearing dialog. Then move the mouse over the "Close" button in the 2nd dialog and wait a little bit. You will see two different tooltips. Is this a bug, Paul?

Code:
      winapp     
      program tooltip_test
      character(len=300) :: hlp
      external do_on_close, do_on_show
      iw = winio@ ('%ww[no_sysmenu,topmost]&')
      iw = winio@ ('%bg[btnface]&')
      iw = winio@ ('%th[delay,left_align]&', 1, 10)
      iw = winio@ ('%fn[Tahoma]%ts&', 0.9d0)
      iw = winio@ ('%`ca[Tooltip Test]&')
      iw = winio@ ('%2.1ob[invisible, bottom_exit]&')     
      hlp = 'Check calculated SRS-spectra against listed limiting curves.'//char(10)//                             &
            'Values of the Pseudo-Velocity, the Rel. Displacement and the Equiv. Acceleration spectra'//char(10)// &
            'which exceed the limiting curve values are written to a file which has to be named after '//          &
            'pressing the "Apply" button.'
      iw = winio@ ('%^?8bt[Show]@%cb&',  do_on_show, hlp)
      hlp = 'Close'
      iw = winio@ (' %^?8bt[Close]@%cb&', do_on_close, hlp)
      iw = winio@ (' %ff')
      end
!=================================================================================================================
      integer*4 function do_on_show()
!=================================================================================================================
      character(len=300) :: hlp     
      external do_on_close
      do_on_show = 2
      iw = winio@ ('%ww[no_sysmenu,topmost]&')
      iw = winio@ ('%bg[btnface]&')
      iw = winio@ ('%th[balloon]&', 1)
      iw = winio@ ('%fn[Tahoma]%ts&', 0.9d0)
      iw = winio@ ('%co[client_edge]&')
      hlp = 'Check calculated SRS-spectra against listed limiting curves.'//char(10)//                             &
            'Values of the Pseudo-Velocity, the Rel. Displacement and the Equiv. Acceleration spectra'//char(10)// &
            'which exceed the limiting curve values are written to a file which has to be named after '//          &
            'pressing the "Apply" button.'
      iw = winio@ ('%cn%^?8bt[Close]@',  do_on_close, hlp)
      end
!=================================================================================================================
      integer*4 function do_nothing()
!=================================================================================================================
      do_nothing = 2
      end
!=================================================================================================================
      integer*4 function do_on_close()
!=================================================================================================================
      do_on_close = 0
      end
!=======================================================================     
      resources
!=======================================================================
 1  24  default.manifest
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Aug 13, 2013 3:34 pm    Post subject: Reply with quote

Yes. In the second Window you are getting both the native ClearWin+ tooltip and the Microsoft tooltip generated by an implied [ms_style].

You would get the same effect in the first Window if you used [balloon] or [ms_style] there.

Also [balloon] is only reading the fist line of the multiline tooltip.

Hopefully a fix won't be too long in coming.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Tue Aug 13, 2013 5:20 pm    Post subject: Reply with quote

These bugs have been fixed in today's beta upload.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Tue Aug 13, 2013 7:45 pm    Post subject: Reply with quote

Manfred,

[client_edge] looks good, doesn't it. Thanks for the tip, even though it doesn't do anything in your demo.

Another thing you get from the ENH file that doesn't appear in the CHM!

Eddie
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Tue Aug 13, 2013 10:18 pm    Post subject: Reply with quote

What controls how long a %th[balloon] help balloon displays for? Is there a setting corresponding to the delay before it appears?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 14, 2013 7:44 am    Post subject: Reply with quote

%th[balloon] implies %th[ms_style] and this uses TTM_SETDELAYTIME with TTDT_AUTOMATIC so the "show" time is 10 times the initial delay time that can be set using %th[delay]. Currently ClearWin+ does not provide an independent way to set the "show" time.

If you would like to set the show time independently then I could provide the tooltip hwnd via clearwin_info@ so that you could set the "show" time via a single call to

SendMessage(hwnd, TTM_SETDELAYTIME, TTDT_AUTOPOP, milliSeconds)
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Wed Aug 14, 2013 8:42 am    Post subject: Reply with quote

Paul,

I don't think it can possibly be a top priority, unless of course there are other things that can be done with a tooltip. I haven't assimilated %th[balloon] yet, and I think that the 10x start delay is a good choice - if the start delay is long! But what if he start delay is very short?

I have been reviewing some software (not FTN95 based) recently, and their tooltips pop up so fast that it gets in the way of using the program. In my view the delay sorts out the user who is merely dithering (UK meaning!) from one who doesn't know what the control does, so needs the help.

Can we therefore ask you to put this handle-finding job into your "to-do" list, but with moderate to low priority please?

Eddie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
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