SYSTEM

IUP - Portable User Interface

Global Attributes

All the attributes are for verification only.

VERSION

Returns the name of IUP's version.

Value

The value follows the "major.minor.driver" format, major referring to broader changes, minor referring to smaller changes and corrections, and driver referring to changes in the respective driver. Ex.: "1.7.2".

COPYRIGHT

Returns the IUP's copyright.

Value

 Ex: "Copyright (C) 1994-2004 Tecgraf/PUC-Rio and PETROBRAS S/A".

DRIVER

Informs the current driver being used.

Value

Two drivers are available now, one for each platform: "MOTIF" and "WIN32".

SYSTEM

Informs the current operating system.

Value

On UNIX, it is equivalent to the command "uname -s" (sysname). On Windows, it identifies if you are on NT, WinXP or 98.

Several values can be provided:

"Linux" "SunOS"
"Solaris"
"IRIX"
"AIX"
"Win95"
"Win95OSR2"
"Win98"
"Win98SE"
"WinMe"
"WinNT"
"Win2K"
"WinXP"

SYSTEMVERSION

Informs the current operating system version.

Value

On UNIX, it is equivalent to the command  "uname -r" (release). On Windows, it identifies the system version with build number and service pack version.

SCREENSIZE

Returns the screen size in pixels. In Windows it excludes the task bar area.

Value

String in the "widthxheight" format.

SCREENDEPTH

Returns the screen depth in bits per pixel.

Locks the loop even when an all dialogs have been closed. Possible values: "YES" or "NO".

CURSORPOS

This attribute programaticaly changes the cursor position. Accept values in the format "poshxposv", example "200x200", in absolute coordinates relative to the upper left corner of the screen.

COMPUTERNAME

Returns the hostname.

USERNAME

Returns the user logged in.


Win32 Global Attributes 

HINSTANCE

This attribute returns a handle (HINSTANCE) that identifies the application in the native system. It is a verification-only attribute.

SYSTEMLANGUAGE

Return respectively a text with a description of the system language.

WIN_DEFAULTFONT

Stores the name of the default font used in the interface controls.

SHIFTKEY

Returns the state of the Shit keys (left and right). Possible values: "ON" or "OFF".

CONTROLKEY

Returns the state of the Control keys (left and right). Possible values: "ON" or "OFF".


Motif Global Attributes 

MOTIFVERSION

Returns the version of the run time Motif.

TRUECOLORCANVAS

Indicates if the display allows creating TrueColor (> 8bpp) windows, even if PseudoColor is the default. Returns "YES" or "NO".

AUTOREPEAT

Turns on/off  ("YES" or "NO") the autorepeat of keyboard keys in the whole system - may be used as an optimization in high performance applications.