C-Bus Forums  

Go Back   C-Bus Forums > Logic Code Library > Community Logic Code Examples

The C-Bus Community Forums is place where C-Bus users can share information and help others with C-Bus. From time to time you will see Clipsal staff on the forums, but this is not an official support channel. If you really need help contact the official support services of Clipsal. More information about the purpose of this forum is available here.

Reply
 
Thread Tools Display Modes
  #1  
Old 28 May 06, 07:57 AM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default What's the CTouch current page

Assuming you have a project with say 40 pages how do you find out what page is currently showing?
The “ShowingPage” seems to be based on the fact that you know the answer before you ask the question or
do you have to do something like (syntax not valid).

If Showingpage(‘aaaa’) then

Else If Showingpage(‘bbbb’) then
………

And so on, but you need to know the page names.
OR
For x =0 to 40 do
If Showingpage(x) then

Endif
next

any ideas please.
dave
Reply With Quote
  #2  
Old 29 May 06, 11:07 AM
Darren Darren is offline
Senior Member
 
Join Date: Jul 2004
Location: Adelaide, South Australia
Posts: 1,830
Default

There is currently no way of finding the current page other than what you have suggested. A "CurrentPage" function is on the list of things to do, but it never seemed like a very useful thing.
__________________
Regards,

Darren
Reply With Quote
  #3  
Old 29 May 06, 11:41 AM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default

Darren
what I want it for was so I could reset timeout timer when a new page was selected by looking at the returned last page and current page names or numbers.
The "getclick" function does not work with themes on pages need it to look at the whole page theme and the page itself.


dave

Last edited by Dave Byron; 29 May 06 at 11:44 AM.
Reply With Quote
  #4  
Old 29 May 06, 05:38 PM
Darren Darren is offline
Senior Member
 
Join Date: Jul 2004
Location: Adelaide, South Australia
Posts: 1,830
Default

Quote:
Originally Posted by Dave Byron
what I want it for was so I could reset timeout timer when a new page was selected by looking at the returned last page and current page names or numbers.
OK. This relates to your other post http://www.cbusforums.com/forums/showthread.php?t=2450
Quote:
Originally Posted by Dave Byron
The "getclick" function does not work with themes on pages need it to look at the whole page theme and the page itself.
I am not sure what you mean by this. Can you clarify please ?
__________________
Regards,

Darren
Reply With Quote
  #5  
Old 29 May 06, 06:19 PM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default

Darren
The pic on the other thread shows buttons down left side that are a theme page
and are used on all the linked pages.
But the "getclick" does not get set on the theme buttons (Home, entry, etc) only when you move to the right and click on button on the page itself.

do you want me to send the files to u ??

dave
Reply With Quote
  #6  
Old 31 May 06, 10:47 AM
Darren Darren is offline
Senior Member
 
Join Date: Jul 2004
Location: Adelaide, South Australia
Posts: 1,830
Default

I have worked out the cause of the problem. If the PICED page has changed since the click, then GetClick will return false, otherwise you may think that the user has clicked on the new page, which is not the case. This means that if the user clicks on a button which changes the page, the GetClick function will return false.

So your problem is not actually related to the fact that these buttons are on a theme page, it is caused by the change of page clearing the GetClick.
__________________
Regards,

Darren
Reply With Quote
  #7  
Old 31 May 06, 05:47 PM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default

Darren
Tks so it means I will not know they changed page from the buttons only when they click somwhere on the new page itself.
Another new command "transparent themes" or "layer merging", think about that one under a palm tree at end of month.

tks again
dave
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Photo Screen Saver Darren Community Logic Code Examples 9 06 Aug 10 05:18 PM
Open ctouch page from cbus input. Woody C-Touch/HomeGate/SchedulePlus/PICED 2 11 Nov 07 08:48 PM
Page Key Indicator number graphic PGale C-Bus Toolkit/C-Gate 3 12 Jun 07 06:34 PM
Synchronising page links on 2 touch screens remotesolutions C-Touch/HomeGate/SchedulePlus/PICED 3 28 Feb 06 08:44 PM
Confused re: using Ctouch with Toolkit JohnC C-Touch/HomeGate/SchedulePlus/PICED 5 06 May 05 09:21 AM


All times are GMT +10.5. The time now is 11:22 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.