PtFolderTab

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `PtFolderTab`

`PtFolderTab` -- A tab for accessing folder contents.

## Synopsis

    class PtFolderTab PtBasic
    {
        foldertab_text_font;      // string
        foldertab_text_string;    // string
    }

## Base Classes

`PtWidget` <-- `PtBasic` <-- `PtFolderTab`

## Description

This widget is a tab that appears at the top of a `PtFolder` and gives access to the contents of the folder. Each `PtFolderTab` needs a `PtPane` as its first child. Clicking on the tab brings the `PtPane` to the front of the folder.

This widget is designed to toggle between "set" and "not set" each time it is selected. So, the first time you click on it, the folder will "open" to that tab setting. The next time you click on it, the folder will "close". If you prefer that the folder stay open to a tab no matter how many times it is clicked, you can incorporate into your code the do_not_unset function shown in the `PtFolder` Example.

| This widget does not appear in the Photon documentation.

## Instance Variables

foldertab_text_font

  A string specifying the font of the tab text. Default is `"helv14"`.

foldertab_text_string

  A string comprising the text string of the tab. Default is `"Tab"`.

## Example

See the example in PtFolder.

## Callbacks

The following callback is associated with this widget:

Callback | Description
--- | ---
`Pt_CB_FOLDER_TAB_SELECTED` | This callback is generated when a tab is selected.

## See Also

PtFolder, PtPane

Prev | Home | Next
`PtFolder` | Up | `PtFontSel`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.