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

# XmTabStackGetSelectedTab(3)

A TabStack function that returns the widget ID of the currently selectedtab

## NAME

**XmTabStackGetSelectedTab** — A TabStack function that returns the widget ID of the currently selectedtab

## SYNOPSIS

```
#include <Xm/TabStack.h>
Widget XmTabStackGetSelectedTab(
Widget widget);
```

## DESCRIPTION

**XmTabStackGetSelectedTab** returns the widget ID of the currently selected tab.

- *widget*

  Specifies the TabStack widget ID

## RETURN

Returns the widget ID of the currently selected tab.

## RELATED

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