-
[Answers] TabView
Once you have created a Tabview Section you can drag other sections into it. Simply drag the header of the section onto the existing tab header (not the Tabview Section header).
Doing it this way allows you to relate multiple Sections to each other and then drag them into tabs while maintaining the relationship. Once you have your tabs in the Tabview Section you can drag and drop to rearrange them.
Q:
activepage
A:
Assuming a Page (page1) has a TabView section (section4) containing a Section called section3 with a Caption of 'Orders' I can do either of these and their synonyms:
Code:
Lianja.get("page1.section4").activepage = "section3"
Lianja.showdocument("page:page1.section4?action=select&text=Orders")
If you are using a custom-coded PageFrame object, then activepage is numeric, starting from 0.
Code:
oPageFrame.activepage = 2
Q:
tabview section. I was wondering if we could also have a carousel section.
It would essentially function the same as a tabview where you could include multiple sections that can be swiped into view, or used as a slideshow or wizard.
A:
The "TabView" can have the "TabBar" hidden at runtime and you can do that already in a gesture delegate.
All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
-
Q:
if I have a TabView, how do I loop between the section?
I tried to test the properties "TabView", but then I can not read it:
A:
Code:
////////////////////////////////////////////////////////////////
// Event delegate for 'activate' event
proc page1_activate()
? 'page1.ACTIVATE'
for i = 1 to Lianja.count
oPage = Lianja.item(i)
for j = 1 to oPage.count
oSection = oPage.item(j)
? "Section " + oSection.id
// Is this section a tabview?
if type("oSection.tabview") = "O"
oTabView = oSection.tabview
// pagecount is the number of tabs/sections in the tabview
for k = 1 to oTabView.pagecount
// tabview.activepage is the numeric active tab starting from 0
oTabView.activepage = k-1
// section.activepage is the character id of the active tab
cSectionInTV = oSection.activepage
? "Section in tabview " + cSectionInTV
// get an object reference to the section based on the char id
oSectionInTV = Lianja.get(cSectionInTV)
for l = 1 to oSectionInTV.count
? oSectionInTV.item(l).id
endfor
endfor
oTabView.activepage = 0
endif
endfor
endfor
endproc
Q:
When the user click on the link on the first column "tipo listino", I need to switch to the second section.
Code:
////////////////////////////////////////////////////////////////
// Event delegate for 'linkclick' event
proc articoli_listinilista_linkclick()
// insert your code here
? "listinilista_linkclick"
Lianja.showdocument("section:listini?action=select&text=listinidettaglio")
endproc
A:
Specify the tab section Caption, not its name/id.
as in the scan of all the sections in a tabview - that you can also access a tab numerically if you use the tabview object reference of the tabview section.
Code:
oTabview = Lianja.get("pageX.listini").tabview
oTabview.activepage = 1 // left to right, starts from 0
Of course, if you then change the order of the sections within the tabview...
All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
-
There are no sections INSIDE Tabview (only visually, as illusion).
how it is manually made: you create a section and then drag over dummy tab. So you get 2 tabs. And so on. After that you delete dummy tab.
It is only a way of presentation. You can "divorce" tabs from TabView and than it became visible as one more section again.
I want to say that you can not traverse deep into TabView to find particular tab.
They are all there as sections. Like Tabview is a section, so all tabs are sections too. They are on equal level.
This is our fictional perception they are "inside". They are equals.
These sections (in fact the visual tabs of Tabview) are in the same level as TabView.
They are OUT of TabView in hierarchy.
All topics in [Answers] alphabetically:http://www.lianja.com/community/showthread.php?2717-Answers