replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Property sheet - hot_action effect
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: 506
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: 2402
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: 506
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: 8210
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 AIM Address
IanLambley



Joined: 17 Dec 2006
Posts: 506
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: 506
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: 8210
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 AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
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: 506
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
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
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 AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
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 AIM Address
PaulLaidler
Site Admin


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

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

I tested under Windows 8.1 and primarily the callback was not being called when an [ms_style] was used. The failure may not occur on other versions of Windows. You can use the above sample to check this out.

I don't have any information about the date of the next release at the moment.
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 -> 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