G Toolbox User's Guide

George Zou
http://gtoolbox.yeah.net

G Toolbox is a collection of 180+ VIs built with CIN for experienced LabVIEW programmers.

C    D    E    F    G    H    J    K    L    M    N    O    P    Q    R    S    T    U    V    W


BMP.vi

This VI loads a BMP file, and display the BMP picture on the specified window. Support 16/32 bit color (LabVIEW Picture control doesn't). Support auto-redraw.

Note: It'll create a new bitmap window (as a child window) for every call. One can use "Destroy window.vi" to programmtically close BMP windows.


Bitmap Shape Window.vi screen shot for Pie Chart screen shot for Pie Chart

This VI re-shape the specified window by removing its background.

Note: This VI scans every pixel of the window. Multiple calls for the same VI is not recommended.


Client to LV.vi

This VI converts client coordiante to LabVIEW coordinate.


Drag & Drop

A set of VIs for LabVIEW run time Drag and Drop support. Will let you know when, where, and which file has been dropped. Example:
G Toolbox 2.2\Examples\DragDrop\DragDrop Demo.vi
G Toolbox 2.2\Examples\DragDrop\DragDrop Demo2.vi


Drag Object

Start Drag LabVIEW Objects support at run time, and get drag start position & drop position.

Note: DragObject.vi can't be called twice in a roll for the same window. Before close the specified window, one must call DragObject Stop.vi.


Draw BMP.vi

This VI draws a bitmap image onto the specified window.


Empty Recycle Bin.vi

This VI empties recycle bin.

Pre-requirement: Win98 or later.


Enumerate Child.vi

This VI enumerates all child windows of the specified window.


Enumerate Windows.vi

This VI enumerates all top-level windows.


File Exist.vi

This VI determines whether the specified file exist or not.


File Property.vi

This VI creates a file property dialog box.


File Time.vi

Get/Set file creation, modification, and/or access time. Make sure the file exists before call this VI.


Find Executable.vi

This VI retrieves the name and path of the executable (.EXE) file associated with the specified filename.


Get Short Paht.vi

Get DOS format, 8.3, file name.


Get Window Status.vi

Retrieve the current status of the specified window.


Hide SysCtrls.vi

Show/Hide Taskbar, Start button, and/or Desktop icons.


Key Down.vi
Key Up.vi

Simulate key press/release.


Load BMP.vi

This VI loads a bitmap resource from the specified DLL.


Load BMP to Clipboard.vi

This VI loads a bitmap file onto the Clipboard. Option of removing bmp edge.


LV to Client.vi

This VI converts LabVIEW coordiante to client coordinate.


Module Path.vi

This VI retrieves the full path and filename for the specified module.


Mouse & Keyboard Events.vi

This VI tracks following mouse & keyboard events:
     mouse hover, mouse leave, mouse move, key press, left click, middle click, & right click.
Upon event occur, the corresponding occurance will be set.

Note: Don't start tracking twice in a roll for the same window !


Open File Dialog.vi

This VI pops up a standard window dialog box from which you can select files to open. Support multiple selections.


Picture to Data.vi

This VI retrieves data from the curve in the specified picture ctrl.


Pie Chart.vi screen shot for Pie Chart

This VI display a 3D pie chart on the specified window. Support auto-redraw.


Polar.vi screen shot for Pie Chart

This VI display a polar coordinate plot on the specified window. Support auto-redraw.


Popup Menu

This VI creates a right-click popup menu at run-time.

Note: Popup Menu.vi can't be called twice in a roll for the same window. Before close the specified window, one must be call Menu Terminator.vi.


Redraw Event

This VI track window redraw event. Set redraw occurance whenever redraw occur.

Note: Redraw Event.vi can't be called twice in a roll for the same window. Before close the specified window, one must be call Stop Tracking Redraw Event.vi.


Replace Extension.vi

This VI replaces the extension of the input path with the new extension.


Save Pic.vi

This VI saves the specified G Toolbox Picture into a file. Support bmp, jpg, and png graphic format.


Scolling Text

Create a scrolling string on the specified window at run-time.

Note: this VI can't be called with flag set to "begin" twice in a roll for the same window. Before close the specified window, this VI must be called with the flag set to "stop".


SemiTransparent String.vi screen shot for Semi-transparent String

This VI display a string with semi-transparent background on the specified window.


SemiTransparent Window.vi screen shot for SemiTransparent Window

Make the specified window semi-transparent, so that everything hidden behind the window will reveal.

Pre-requirement: Win2k or later.


Set Parent plus.vi

Set a window to be a child window of another. Auto handling the child window position shift. No flickering. To set a child window back to top level window, simply set "hWnd parent" to 0.


Shortcut.vi

Create a shortcut for the specified file in the specified directory.


Simulate Click.vi

Simulate a mouse click at current cursor position.


SnapView

This VI capture the specified rectangular area on screen, and save it to a bitmap file.


Strip Extension.vi

This VI strips the extension from the input path.


SysTray Icon.vi screen shot for System Tray Icon screen shot for System Tray Icon

This VI add an icon into system tray (on the right hand side of the taskbar).

Note: Before close the specified window, this VI must be called with "DELETE".


SysTray II.vi

This VI replace window minimize feature with SysTray feature, so that when "minimize", window goes to System Tray instead of Taskbar.

Note: this VI can't be called with "TrayMode" twice in a roll for the same window. Before close the specified window, this VI must be called with "DELETE".


Time Zone

Use "Get Valid Time Zones" to retrieve all valid Time Zones for user to choose. Use "Set Time Zone" to change the current Time Zone settings. Use "Get Time Zone" to verify the changes.

Note: For experienced user only. Assume users have the knowledge of edit & restore registry.


Vertical Text.vi screen shot for Vertical Text

This VI creates a vertical text at runtime on the specified window. Limit to one line.


Window - O.vi

Change the window shape from rectangular to elliptic.