December 21, 2024

Dynamic Windows Function [dw_container_cursor]

Syntax

void dw_container_cursor(HWND handle, char *title)

Parameters

HWND handle: Handle to the window (widget) to be queried.
char *title: Title usually returned by dw_container_query().

Description

Cursors the item with the title speficied, and scrolls to that item.

Remarks

On some platforms, notably Windows this function will not accurately scroll a non-visible window.

To be crossplatform issue this call after the window is displayed.

As of version 3.0 this function does a string comparison, to do a pointer comparison use dw_container_cursor_by_data().

From versions 2.2 to 2.5 there is a special mode for doing a string comparison on the titles. To enable string comparisons on the container issue this command:

dw_window_set_data(container, "_dw_textcomp", DW_INT_TO_POINTER(1));