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 *
  Visible
  Color
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
  Panel
  RadioGroup
  Ruler
  SpinEdit
  Splash
  Splitter
  StatusBar
  Style
  Tab
  Tabs
  Toolbar
    AllowClose
    AllowCustomizing
    DropDown
    AllowReset
    AlphaBlendValue
    Background
    BorderStyle
    Align
    DockedLeft
    DockedTop
    FloatHeight
    FloatWidth
    FloatLeft
    FloatTop
    Hidden
    MainMenu
    Multiline
    NotDocking
    OneOnRow
    RotateWhenVertical
    ShowMark
    SizeGrip
    UseRestSpace
    WholeRow
    Reset
    Row
  Tree
  Window
Related Links:
  Toolbar
Toolbar [[zToolbar]] 
NOTE: This Design document is subject to change at any time.

Syntax: <TOOLBAR property-list>Script</TOOLBAR>

Creates a toolbar to contain menus, items, and other controls. Toolbars can be customized by the end user, and toolbars can be dragged to different docking locations on the screen, or made into floating toolbars.

A Toolbar can be defined globally in the HEAD tag and then used within specific Windows. This allows the toolbar to be defined once and used in several places.

Most any zApp control can be placed into a toolbar. The most common toolbar items are the zItem and zMenu objects.

The image at the top of this article was created with the following ZML code:
Code:

<toolbar name='mainmenu'>
  <menu caption='File'/>
  <menu caption='Edit'/>
    <item action='_EditCut'/>
    <item action='_EditCopy'/>
    <item action='_EditPaste'/>
  <menu caption='View'/>
  <item action='_EditCut'/>
  <item action='_EditCopy'/>
  <item action='_EditPaste'/>
  <combo.fonts/>
  <combo.colors name='color' colors='x11ordered' text='aliceblue'/>
</toolbar>

The first toolbar in a window is designated as the main menu for the form. Additional toolbars are drawn as toolbars rather than menus. This can be changed using the MainMenu property.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net