Share this page

Object Sizes

# sapgui_window_resize

Window Functions

Resizes the active window.

    int sapgui_window_resize( const char *width, const char *height, [args,]  LAST );

width | Object Sizes
height | Object Sizes
args | Optional Arguments
LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used.

sapgui_window_resize resizes the active window to width and height.

## Object Sizes

Object sizes are in expressed in character metric. A object of width 100 can display approximately 100 characters of the default font and size. A height of 21 means that approximately 21 lines of text of the default font and size can be displayed.

## Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

## Parameterization

You can parameterize all string (char type) arguments.

## Example

The following example uses sapgui_window_resize.

    sapgui_window_resize(

        "111", // Width

        "21", // Height

        BEGIN_OPTIONAL,

                "AdditionalInfo=info1024",

        END_OPTIONAL);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: