|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Sat Jan 09, 2016 1:49 pm Post subject: Property sheet - hot_action effect |
|
|
Paul,
When using the %ps function with a callback, the [hot_action] option prevents the callback.
Ian |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2390 Location: Yateley, Hants, UK
|
Posted: Sun Jan 10, 2016 11:32 am Post subject: |
|
|
My FTN95.CHM calls this 'hot_track'... |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Sun Jan 10, 2016 2:58 pm Post subject: |
|
|
Oops,
I meant [hot_track], must have been a Freudian slip!
Ian |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7931 Location: Salford, UK
|
Posted: Mon Jan 11, 2016 8:06 am Post subject: |
|
|
Thank you. I have made a note of this. |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Wed Jan 20, 2016 11:46 am Post subject: |
|
|
a wild guess this, but since 'hot_track' according to the documentation implies 'ms_style' , do you have the default manifest line in the resources file Ian, and if not could that be affecting something ? |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Wed Jan 20, 2016 1:21 pm Post subject: |
|
|
John,
I'll check that when I get home.
Ian |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Wed Jan 20, 2016 11:54 pm Post subject: |
|
|
Here is a summary of the effects:
Code: | resources
1 24 default.manifest |
included or not included,
[hot_track] option not specified
Result - selecting tab actions the assigned callback.
[hot_track] option specified
Callback not used, highlighting of tab text does not work
default.manifest not included
[hot_action] OR callback works, not both.
Ian |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7931 Location: Salford, UK
|
Posted: Thu Jan 21, 2016 10:09 am Post subject: |
|
|
Using a manifest has the effect of binding the application to version 6.0 of the Microsoft DLL Comctl32.dll (or at least that is how it was at the beginning). See https://msdn.microsoft.com/en-us/library/aa289524(v=vs.71).aspx.
So maybe ClearWin+ will have no control over this effect. However I will leave this as something to be investigated.
All of this relates to 32 bit Windows. I am guessing that 64 bit Windows uses only one version of Comctl32.dll. The answer may be here.. https://msdn.microsoft.com/en-gb/library/windows/desktop/hh298349(v=vs.85).aspx
(Sorry about the incomplete URLs). |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Mon Jan 25, 2016 1:59 pm Post subject: |
|
|
Ian,
Dan had no problems with hot_track in the program he had a while back where he wanted to add scrolling.
The rel. line from that program was:-
i = winio@('%^`15ps[hot_track]&', ish1, ish2, ish3, ish4, ish40,
* ish41, ish5, ish6, ish7, ish9, ish10, ish11, ish12, ish13,ish14,
* n_sheetInitData, cbupdateInitData)
I just double-chcked and the highlight when hovered over works fine.
Don't know if that helps at all.
Dan and Eddie are the 'experts' in 'exploring' %ps if I remember from other posts.
Way back in 2012 there was this post which discussed some problems they were hving, which might be relevant (or not):-
http://forums.silverfrost.com/viewtopic.php?t=2256&highlight=hottrack[url] |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2390 Location: Yateley, Hants, UK
|
Posted: Mon Jan 25, 2016 5:46 pm Post subject: |
|
|
I actually gave up, and found a way of advancing from input window to input window, plus doing it in any order or even backtacking.
We must surely all have a list offormat code effects we like, and those we can't get on with: %ps, %lv and %bv are my least favourites, along with %dw. |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Mon Jan 25, 2016 9:34 pm Post subject: |
|
|
Thanks for trying this, but like Eddie, I have given up using the [hot_track] option as it is purely cosmetic whereas the callback is a necessity.
Regards
Ian |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Tue Jan 26, 2016 5:19 am Post subject: |
|
|
ok, I almost wrote that you'd given up Eddie 'cause I'd seen other posts but then deleted it cos I wasn't sure ! LOL
Ian, but Dan's callback worked. The snippet of code I posted was just the call to %ps, maybe there's something else in there (I was just playing around with the scrolling which I got working) but not sure of the rest of the details in his full code. It was just last year not back in 2012 that problem.
Mybe it's relevant (or not) to you're problem.
Maybe your callback problem is specific to your code and what your trying to do exactly (as it always is of course). |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7931 Location: Salford, UK
|
Posted: Wed Jun 01, 2016 4:27 pm Post subject: |
|
|
I have had a look at this and I can confirm that the callback response is different depending on whether or not hot_track is used. At the moment I don't know how to fix this so it remains a limitation. So for the time being %^ps[hot_track] is not a useful combination. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7931 Location: Salford, UK
|
Posted: Mon Jun 06, 2016 7:08 am Post subject: |
|
|
This has now been fixed for the next release. Hopefully you will be able to everything as documented. Here is my test program.
Code: | !FTN95$WINAPP
!------------------------------------------------------------------
module psdata
integer g1,g2,col1,col2,n,sheetn
end module psdata
!------------------------------------------------------------------
program ps
use clrwin
use psdata
integer,external::redraw1,redraw2,cb,cb1,cb2
integer i,wh1,wh2
g1=1
g2=2
col1=1
col2=1
sheetn=1
n=0
! *** Define the first property sheet %sh with embedded graphics
i=winio@('%sh%sc%ca[Window &1]&',wh1,redraw1)
i=winio@('%`gr%ta%nl%ta %7^bt[Redraw]',200,200,g1,redraw1)
! *** Next property sheet
i=winio@('%sh%sc%ca[Window &2]&',wh2,redraw2)
i=winio@('%`gr%ta%nl%ta %7^bt[Redraw]',200,200,g2,redraw2)
! *** Now display the combined sheets
i=winio@('%ca[Property sheet]%^`2ps[hot_track]&',wh1,wh2,sheetn,cb)
i=winio@('%ac[Ctrl+A]&',cb1);
i=winio@('%ac[Ctrl+B]&',cb2);
i=winio@(' %6rd&',n)
i=winio@('%2nl%ta%8^bt[Exit]','EXIT')
end
!----------------------------------------------------------------------
integer function redraw1()
use clrwin
use psdata
integer i
i=select_graphics_object@(g1)
do i=0,200
call draw_line_between@(0,i,200,i,col1)
col1=col1+1
if (col1>=255) col1=0
end do
redraw1=1
end
!-----------------------------------------------------------------------
integer function redraw2()
use clrwin
use psdata
integer i
i=select_graphics_object@(g2)
do i=0,200
call draw_line_between@(i,0,i,200,col2)
col2=col2+4
if (col2>=255) col2=0
end do
redraw2=1
end
!-----------------------------------------------------------------------
integer function cb()
use psdata
n = n+1
cb = 1
end
!-----------------------------------------------------------------------
integer function cb1()
use psdata
use clrwin
sheetn = 2
call SEE_PROPERTYSHEET_PAGE@(sheetn)
cb1 = 2
end
!-----------------------------------------------------------------------
integer function cb2()
use psdata
use clrwin
sheetn = 1
call SEE_PROPERTYSHEET_PAGE@(sheetn)
cb2 = 2
end
|
|
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Mon Jun 06, 2016 9:01 pm Post subject: |
|
|
Paul wrote:-
Quote: | I have had a look at this and I can confirm that the callback response is different depending on whether or not hot_track is used. |
how is it different ?
I'm still confused since as I posted back in January above one of Dan's programs had hot-track and callback and was working fine I think (certainly the hover-over highlighting was working.
Maybe something new has cropped up I'm missing.
Any idea when the next update is available to check the code above ? |
|
Back to top |
|
|
|
|
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
|