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 

Property sheet - hot_action effect
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
IanLambley



Joined: 17 Dec 2006
Posts: 465
Location: Sunderland

PostPosted: Sat Jan 09, 2016 1:49 pm    Post subject: Property sheet - hot_action effect Reply with quote

Paul,
When using the %ps function with a callback, the [hot_action] option prevents the callback.
Ian
Back to top
View user's profile Send private message Send e-mail
LitusSaxonicum



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

PostPosted: Sun Jan 10, 2016 11:32 am    Post subject: Reply with quote

My FTN95.CHM calls this 'hot_track'...
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 465
Location: Sunderland

PostPosted: Sun Jan 10, 2016 2:58 pm    Post subject: Reply with quote

Oops,
I meant [hot_track], must have been a Freudian slip!
Ian
Back to top
View user's profile Send private message Send e-mail
PaulLaidler
Site Admin


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

PostPosted: Mon Jan 11, 2016 8:06 am    Post subject: Reply with quote

Thank you. I have made a note of this.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 404

PostPosted: Wed Jan 20, 2016 11:46 am    Post subject: Reply with quote

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



Joined: 17 Dec 2006
Posts: 465
Location: Sunderland

PostPosted: Wed Jan 20, 2016 1:21 pm    Post subject: Reply with quote

John,
I'll check that when I get home.
Ian
Back to top
View user's profile Send private message Send e-mail
IanLambley



Joined: 17 Dec 2006
Posts: 465
Location: Sunderland

PostPosted: Wed Jan 20, 2016 11:54 pm    Post subject: Reply with quote

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


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

PostPosted: Thu Jan 21, 2016 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 404

PostPosted: Mon Jan 25, 2016 1:59 pm    Post subject: Reply with quote

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



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

PostPosted: Mon Jan 25, 2016 5:46 pm    Post subject: Reply with quote

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



Joined: 17 Dec 2006
Posts: 465
Location: Sunderland

PostPosted: Mon Jan 25, 2016 9:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
John-Silver



Joined: 30 Jul 2013
Posts: 404

PostPosted: Tue Jan 26, 2016 5:19 am    Post subject: Reply with quote

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 Smile

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


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

PostPosted: Wed Jun 01, 2016 4:27 pm    Post subject: Reply with 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. 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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Jun 06, 2016 7:08 am    Post subject: Reply with quote

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
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 404

PostPosted: Mon Jun 06, 2016 9:01 pm    Post subject: Reply with quote

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
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 1, 2  Next
Page 1 of 2

 
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