LitDev Extension API

Geography LD3DView LDArray LDBits LDBlueTooth
LDCall LDChart LDClient LDClipboard LDColours
LDCommPort LDController LDControls LDCursors LDDataBase
LDDateTime LDDebug LDDialogs LDDictionary LDEffect
LDEmail LDEncryption LDEvents LDFastArray LDFastShapes
LDFigures LDFile LDFocus LDftp LDGeography
LDGraph LDGraphicsWindow LDHashTable LDHID LDIcon
LDImage LDInline LDIOWarrior LDList LDLogic
LDMath LDMathX LDMatrix LDMusic LDNetwork
LDPhysics LDProcess LDQueue LDRegex LDResources
LDScrollBars LDSearch LDServer LDSettings LDShapes
LDShell LDSort LDSound LDSpeech LDStatistics
LDStopwatch LDText LDTextWindow LDTimer LDTranslate
LDUnits LDUtilities LDVector LDWaveForm LDWebCam
LDWindows LDxml LDZip

LDDialogs
Dialogs and popups.

AddRightClickMenu Calendar Colour
Confirm EndWait Font
GetFolder LastRightClickMenuItem OpenFile
RightClickMenu SaveFile SetStartupPosition
ToolTip Wait

AddRightClickMenu(items,images)
Add a right click context menu for the GraphicsWindow.
items An array of context menu item selection texts.
images Optional array of image icons, any or all may be "".
They may be the result of ImageList.LoadImage or local or network image file.


Calendar(start)
A popup calendar date chooser - double click a date or press return to select a date.
start The initial date in the control, may be "" for today.
returns The selected date.

Colour()
Choose a colour from a dialog.
returns The chosen colour.

Confirm(text,title)
A message dialog with Yes, No and Cancel options.
text Text question for the dialog.
title Title for the dialog.
returns "Yes", "No" or "Cancel"

EndWait()
Close the waiting popup window.
returns None.

Font(font)
Use the font dialog to select a font.
font An array with the initial font selected.
It has the same format as the return array, and can be an empty array "".

returns An array with the font properties.
result[1] is Font name
result[2] is Font size
result[3] is Font bold ("True" or "False")
result[4] is Font italic ("True" or "False")


GetFolder(InitialFolder)
A Dialog to get a folder (directory).
InitialFolder The initial folder or "" for the last folder selected.
returns The full path to the selected folder or "" if none is selected.

LastRightClickMenuItem
The index of the last right click context menu item selected.

OpenFile(extension,folder)
Open File Dialogue (get an existing file).
extension The file type extension, e.g. "sb".
This may also be an array of extension types such as "1=png;2=jpg;".
If the extension contains a "|" character then it will be used directly such as "Images|*.bmp;*.jpg;*.gif;*.png|All files (*.*)|*.*".

folder The initial folder to open dialog with, can be "".
returns The full path of the file.

RightClickMenu
Event when a right click context menu item is selected.

SaveFile(extension,folder)
Save File Dialogue (get a new file).
extension The file type extension, e.g. "sb".
This may also be an array of extension types such as "1=png;2=jpg;".
If the extension contains a "|" character then it will be used directly such as "Images|*.bmp;*.jpg;*.gif;*.png|All files (*.*)|*.*".

folder The initial folder to open dialog with, can be "".
returns The full path of the file.

SetStartupPosition(x,y,mode)
Set the startup coordinates (top left) for most dialoges. This should be set before the dialog is called.
x The X coordinate.
y The X coordinate.
mode The mode which is one of the following
0 : Off (default)
1 : The coordinates are relative to the graphics window, equivalent to GraphicsWindow.MouseX/Y.
2 : The coordinates are relative to the display window, equivalent to Desktop.MouseX/Y


ToolTip(shapeName,tip)
Set a tooltip popup for common shapes and controls.
shapeName The shape or control.
tip The text content of the tooltip.
returns None.

Wait(text,colour)
Create a waiting popup window with a text message.
text The text to display in the popup window.
colour The colour of the popup window border, may be "" for default.
returns None.