Warning of change to text format (.tui) files, New functions, Warning of change to text – National Instruments Window User Manual

Page 25: Format (.tui) files, Secti

Advertising
background image

©

National Instruments Corporation

25

LabWindows/CVI Release Notes for Windows

the function. The menu ID or menu item ID that you pass to User Interface Library functions
is based on a depth-first traversal of all the items in the menu tree, starting at 2. For submenu
items, the submenu itself has an ID that is one greater than the item ID of submenu entry in
the parent menu.

If you save a

.tui

file in the User Interface Editor in LabWindows/CVI 5.0 or higher and you

have an up-to-date include (

.h

) file the User Interface Editor generates, you can use the panel,

control, menubar, menu, submenu, and menu item constants in the include file as parameters
to User Interface Library functions.

Warning of Change to Text Format (.tui) Files

The order in which panel and menubar sections are written has changed to allow you to use
user interface include file constants in conjunction with

.tui

files. In addition, the version

number has changed from 101 to 102.

If you use

.tui

files to find differences between versions of your

.uir

files and your

generated

.tui

files in previous version of LabWindows/CVI, use LabWindows/CVI 5.0

to create new baseline

.tui

files for all your

.uir

files.

New Functions

The following nine new functions in the User Interface Library are listed in alphabetical
order:

GetScaledCtrlDisplayBitmap

creates a bitmap object that contains a snapshot

image of the current appearance of the specified control.

GetScaledPanelDisplayBitmap

creates a bitmap object that contains a snapshot

image of the current appearance of the specified panel.

GetTextBoxLineIndexFromOffset

returns the zero-based index of the line on which

the character at a specified byte offset is contained in a textbox control.

GetTextBoxLineOffset

returns the zero-based index of the line on which the

character at a specified byte offset is contained in a textbox control.

MakeApplicationActive

activates your application and brings its topmost panel to

the front.

MinimizeAllWindows

hides all panels created in the current thread, other than panels

with their own taskbar buttons. You can restore the panels by clicking on the taskbar
button for the thread.

PostDeferredCallToThread

has the same capabilities as

PostDeferredCall

except that you can specify the thread in which the callback function is to be called.

SetBitmapData

changes the image contents of an existing bitmap.

SetPanelSize

sets the height and width of the panel.

Advertising