---
name: "XmNotebookGetPageInfo"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmNotebookGetPageInfo"
---

# XmNotebookGetPageInfo(3)

A Notebook function that returns page information

## NAME

**XmNotebookGetPageInfo** — A Notebook function that returns page information

## SYNOPSIS

```
#include <Xm/Notebook.h>
XmNotebookPageStatus XmNotebookGetPageInfo(
Widget notebook,
int page_number,
XmNotebookPageInfo *page_info);
```

## DESCRIPTION

**XmNotebookGetPageInfo** returns status information for the specified Notebook page.

- *notebook*

  Specifies the Notebook widget.

- *page\_number*

  Specifies the page number to be queried.

- *page\_info*

  Points to the structure containing the page information. The structure has the following form:

```
typedef struct
{
        int     page_number;
        Widget  page_widget;
        Widget  status_area_widget;
        Widget  major_tab_widget;
        Widget  minor_tab_widget;
} XmNotebookPageInfo;
(void)
```

- *page\_number*

  Specifies the *page\_number* passed to the function.

- *page\_widget*

  Specifies a child widget of the Notebook with a **XmNchildType** of **XmPAGE** and a **XmNpageNumber** equal to *page\_number* if one exists; otherwise set to NULL.

- *status\_area\_widget*

  Specifies a child widget of the Notebook with a **XmNchildType** of **XmSTATUS\_AREA** and a **XmNpageNumber** equal to *page\_number* if one exists; otherwise set to NULL.

- *major\_tab\_widget*

  Specifies a child widget of the Notebook with a **XmNchildType** of **XmMAJOR\_TAB** and the nearest **XmNpageNumber** equal to or less than *page\_number* if one exists; otherwise set to NULL.

- *minor\_tab\_widget*

  Specifies a child widget of the Notebook with a **XmNchildType** of **XmMINOR\_TAB** and the nearest **XmNpageNumber** equal to or less than *page\_number* if one exists; otherwise set to NULL.

For a complete definition of Notebook and its associated resources, see [**XmNotebook**(3)](/XmNotebook/3.md).

## RETURN

Returns one of the following page status values:

- **XmPAGE\_FOUND**

  The specified page was found.

- **XmPAGE\_INVALID**

  The specified page number is out of the page number range.

- **XmPAGE\_EMPTY**

  The specified page does not have a page widget.

- **XmPAGE\_DUPLICATED**

  There is more than one page widget with the specified page number. The more recently managed page widget is used for the page information structure.

## RELATED

[**XmNotebook**(3)](/XmNotebook/3.md).
