PICED Subpages

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by constantcharge, Aug 14, 2010.

  1. constantcharge

    constantcharge

    Joined:
    Nov 23, 2004
    Messages:
    83
    Likes Received:
    0
    Location:
    Adelaide
    Hi Guys,

    Been playing around with subpages :) (simliar to crestron which is good)

    I have a question that I cant find a setting for.
    When placing a subpage frame how can you make it stay "always on top" of either:

    2nd sub frame on same page or
    Of a button when placed on a theme page

    The send back or bring to front doesnt seem work and I cant see any priority options.
     
    constantcharge, Aug 14, 2010
    #1
  2. constantcharge

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Sub-Page Frames can be in front of or behind components, like any other component. It may be that you sub-page being displayed has a transparent background and it looks like it is not doing what you expect. Set the background to a colour and see what happens.
     
    Darren, Aug 14, 2010
    #2
  3. constantcharge

    constantcharge

    Joined:
    Nov 23, 2004
    Messages:
    83
    Likes Received:
    0
    Location:
    Adelaide
    The background is transparent but I changed it back to a fixed colour and that didnt fix the problem.

    Seems that when the subfame is placed in a theme page it is always behind what ever is placed on the page that the theme is being used. This would make sense, I guess that unless the subframe is on the same page it wont show over other controls. So then for every page that uses a menu looks like i will have to place the same subframes instead of just setting the page to a theme page...
     

    Attached Files:

    Last edited by a moderator: Aug 15, 2010
    constantcharge, Aug 15, 2010
    #3
  4. constantcharge

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    That is correct. Anything on a theme page, including sub-page frames, will be behind any components on the page using the theme page.
     
    Darren, Aug 15, 2010
    #4
  5. constantcharge

    constantcharge

    Joined:
    Nov 23, 2004
    Messages:
    83
    Likes Received:
    0
    Location:
    Adelaide
    Hi Darren,

    Not sure if its possible but in logic is there a way to 'Show Sub-Page'. I can see in special functions there is ExecuteSpecialFunction("Sub-Page Transition" xx) but not a sub page jump.

    eg, if condition xx then jump to subpage yy.
     
    constantcharge, Aug 26, 2010
    #5
  6. constantcharge

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    There are two ways of doing it. See the logic help file topic "ShowSubPage Procedure" (PICED 4.9.2) for the easy way of doing it.
     
    Darren, Aug 27, 2010
    #6
  7. constantcharge

    constantcharge

    Joined:
    Nov 23, 2004
    Messages:
    83
    Likes Received:
    0
    Location:
    Adelaide
    Thanks,

    I did the following to test. Created 2 Sub pages 1 & 2 and placed on New Page. Then used the following

    ShowSubPage(Currentpage, 0, "1");
    Delay(2);
    ShowSubPage(Currentpage, 0, "2");
    Delay(2);

    This didnt work, When on "New Page" CurrentPage was returing 0 but the actual page was 6.???
    If I used the tag or number 6 it works.

    ShowSubPage(6, 0, "1");
    Delay(2);
    ShowSubPage("New Page", 0, "2");
    Delay(2);

    I unticked the sort pages shown below, Are sub pages counted as pages ? If so then Page 6 makes sense.
     

    Attached Files:

    Last edited by a moderator: Aug 28, 2010
    constantcharge, Aug 27, 2010
    #7
  8. constantcharge

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    It is strongly recommended that you use tags. Otherwise if you rearrange things, then everything will stop working if you use component numbers or page numbers.
    The problem is that the page number used in ShowSubPage actually references the combined list of theme pages, sub pages and regular pages. The CurrentPage is referencing just the list of regular pages (since you can't view anything but a regular page in normal operation).
     
    Darren, Aug 28, 2010
    #8
  9. constantcharge

    constantcharge

    Joined:
    Nov 23, 2004
    Messages:
    83
    Likes Received:
    0
    Location:
    Adelaide
    Thanks Darren,

    Makes sense now.
     
    constantcharge, Aug 29, 2010
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.