About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Common Properties:
  Name *
  Left *
  Top *
  Width *
  Height *
  Align *
  AutoLeft *
  AutoTop *
  DeltaLeft *
  DeltaTop *
  DeltaRight *
  DeltaBottom *
  AutoCenter *
  FullWidth *
  Anchors
  Enabled
  Image
  Hint *
  Visible
Common Events:
  OnClick *
Visual Object Reference
  Common Properties
  Common Events
  ActiveX
  Button
  Checkbox
  CheckGroup
  ColorBtn
  Column
  Combo
  Dock
  Edit
  Grid
  Group
  Image
  Item
  ItemSep
  Label
  List
  Memo
  Menu
  Navigator
  Node
  Page
  Pages
    ActivePage
    ActivePageName
    ShowCloseButton
    RaggedRight
    BoldCurrentTab
    OverrideColor
    HotTrack
    ShowFrame
    TabHeight
    TabOrientation
    TabStyle
    TabWidth
    UseGradients
    Multiline
    TabIndex
    SelectedTextColor
    UnselectedTextColor
    OnCloseQuery
    Rotate
    ScrollOpposite
    MaxRotatedTabWidth
    HideTabs
    NavigatorPosition
    ShowDropDown
    ShowArrows
    TopToBottom
  Panel
  RadioGroup
  Ruler
  SpinEdit
  Splash
  Splitter
  StatusBar
  Style
  Tab
  Tabs
  Toolbar
  Tree
  Window
Related Links:
  Pages
  Tabs
  Page
  Active
Pages [[zPages]] 
NOTE: This Design document is subject to change at any time.

Syntax: <PAGES property-list>pages</PAGES>

The Pages control implements a collection of "Page" components, each page having it's own "tab". This is typically used for option and property screen where multiple pages of options need to be displayed.

If you need to display a set of "tabs" without needing a separate panel for each tab, see the zTabs component.

Unlike other components in zApp, the Pages component doesn't implement themes normally. Rather than letting the theme control how the tab page is displayed, the page control implements several properties and methods to override the default look and feel. In particular, the Pages control allows you to set a different color for each tab, and better control whether the border around the pages is displayed.

Within a Pages control, you will need to define each separate tab page using the <TAB> or <PAGE> tag (both are equivalent). For example, to create the image shown above, the following code was used:
Code:
<PAGES>
  <PAGE caption='Page 1'/>
  <PAGE caption='Page 2'/>
  <PAGE caption='Page 3'/>
</PAGES>

For details on the properties that can be set for each page, see the zPage component.

The OnClick event is called when a tab is clicked. The OnCloseQuery is called to determine if a tab can be closed when clicking the Close button (if ShowCloseButton is true). Use the TabIndex or ActivePage properties to determine which tab was clicked or closed.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net