Thread Rating:
  • 424 Vote(s) - 2.79 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page 4: Structure of a Program that uses a Tab Accordion to Create the Layout
06-20-2011, 01:44 PM, (This post was last modified: 06-23-2011, 04:32 PM by ashimo.)
#1
Page 4: Structure of a Program that uses a Tab Accordion to Create the Layout
Structure of the Program that uses a TabAccordion to Create the Layout



The use of TabAccordion to create a layout is similar to that of TabContainer. For each tab, we specify a TabPane declaration, in the same manner as in Basics 1.

1. Declaring a TabAccordion

Code:
let tab-accordion:TabAccordion =
    {TabAccordion
    }

To create a tab accordion, we use TabAccordion. Unless specified otherwise, the page layout is oriented vertically, as in the case of this example. To orient the layout horizontally, we would specify tab-orientation = Orientation.horizontal.

Code:
let tab-accordion:TabAccordion =
    {TabAccordion
        tab-orientation = Orientation.horizontal,
        ... (additional code) ...
    }

Note: In the STEP 2 source code, ||tab-orientation = Orientation.horizontal is commented out. Simply by removing the || we can flip the TabAccordion orientation from vertical to horizontal.




Messages In This Thread
Page 4: Structure of a Program that uses a Tab Accordion to Create the Layout - by ashimo - 06-20-2011, 01:44 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Page 8: Extra Practice ashimo 0 3,425 06-20-2011, 01:55 PM
Last Post: ashimo
  Page 7: Summary ashimo 0 3,037 06-20-2011, 01:51 PM
Last Post: ashimo
  Page 6: Structure of a Program that Creates the Screen Layout ashimo 0 3,305 06-20-2011, 01:49 PM
Last Post: ashimo
  Page 5: Application: Creating the Screen Layout ashimo 0 3,027 06-20-2011, 01:46 PM
Last Post: ashimo
  Page 3: Basics 2: Using a Tab Accordion to Display a Layout ashimo 0 3,026 06-20-2011, 01:43 PM
Last Post: ashimo
  Page 2: Structure of a Program that uses Tab Containers ashimo 0 3,060 06-20-2011, 01:41 PM
Last Post: ashimo
  Page 1: Integrating Applications ashimo 0 2,976 06-20-2011, 01:39 PM
Last Post: ashimo
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('82')