Admin Production ni-theme
Current Publication

ProcessDrawEvents

LabWindows/CVI

ProcessDrawEvents

int ProcessDrawEvents (void);

Purpose

When your program executes in a callback function or in code that does not call RunUserInterface or GetUserEvent, LabWindows/CVI does not update the user interface. Functions that are overly time-consuming can "lock out" user interface updates. To allow LabWindows/CVI to process these updates, call ProcessDrawEvents.

If you call this function in a multithreaded program, only the panels created in the current thread are guaranteed to be updated fully.

Note    LabWindows/CVI automatically updates the user interface in GetUserEvent or when a callback returns.

Parameters

None.

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the ProcessDrawEvents function:

  • userint\DigGraphDAQmx.cws

    Open example
  • userint\GraphAnnotations.cws

    Open example
  • userint\GraphZooming.cws

    Open example