Description


Include file: xbookpg.h

Parent class: XWindow

Overview

XNoteBookPage is a page of XNoteBook. You can add one ore more pages to a notebook. The behaviour of a XNoteBookPage is like any other window so you can use all functions like DoCommand, DoControl etc.

Functions

GetBackgroundColor

Parameters

XColor * buffer

Remarks

Returns the background color.

XNoteBookPage

Parameters

XNoteBook * notebook notebook which gets the page
USHORT style style of the page:
BP_MAJORTAB
BP_MINORTAB
BP_PAGEBUTTON
BP_STATUSTEXTON
BP_MAJOR
BP_MINOR

(can be or-ed, default is BP_MAJOR|BP_STATUSTEXTON)
USHORT order where to insert:
BP_LAST
BP_FIRST
BP_NEXT
BP_PREV
BP_TOP

if BP_LAST or BP_FIRST, insertBehind is ignored (default BP_LAST)
XNoteBookPage * insertBehind insert behind this page (default is NULL)
XResource * resource It is possibe to load a dialog from the resources to be a bookpage. If you want to do so give here a XResource which contains the id of the dialog to load and the resourcelibrary where to load the dialog from. If you have created one or more pages from resources, you should resize the notebook. Default is NULL.

Remarks

Construct a notebook-page and adds it to a given notebook

Exceptions

If the method fails an exception of the type XException is thrown.

GetPageCount

Return-Value

SHORT numberOfPages

Remarks

Returns the count of minor-pages behind this page up to the next major-page

SetTop

Remarks

Set the page to the top of the notebook

SetBitmap

Parameters

XBitmap * bitmap the bitmap to display

Remarks

Set the bitmap of the tab

SetStatusText

Parameters

char * text the text to display

Remarks

Set the text of the status-line (if the page has one)

SetText

Parameters

char * text the text to display

Remarks

Set the text of the tab


This document was generated by Jens von Pilgrim's Autodoc