Function Reference

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Process Functions)
Line 107: Line 107:
 
* [[Core Function isVarObj|isVarObj( $variable, <type> )]] -- Check if a variable is an object type (This includes classes, file handles etc)
 
* [[Core Function isVarObj|isVarObj( $variable, <type> )]] -- Check if a variable is an object type (This includes classes, file handles etc)
 
* [[Core Function isVarClass|isVarClass( $variable, <type> )]] -- Check if a variable's object type is a class
 
* [[Core Function isVarClass|isVarClass( $variable, <type> )]] -- Check if a variable's object type is a class
* [[Core Function isVarGUI|isVarGUI( $variable )]] -- Check if a variable's object type is a GUI
 
* [[Core Function isVarGUIObject|isVarGUIObject( $variable, <type> )]] -- Check if a variable's object type is a GUI Object (Buttons etc)
 
 
* [[Core Function isVarDLLStruct|isVarDLLStruct( $variable )]] -- Check if a variable holds a DLLStruct
 
* [[Core Function isVarDLLStruct|isVarDLLStruct( $variable )]] -- Check if a variable holds a DLLStruct
 
* [[Core Function isVarServer|isVarServer( $variable )]] -- Check if a variable holds a Server object from Listen()
 
* [[Core Function isVarServer|isVarServer( $variable )]] -- Check if a variable holds a Server object from Listen()
Line 388: Line 386:
 
* [[Core Function GUICreate|GUICreate( <Title>, <Width>, <Height>, <Left>, <Top> )]] -- Create new GUI window
 
* [[Core Function GUICreate|GUICreate( <Title>, <Width>, <Height>, <Left>, <Top> )]] -- Create new GUI window
 
* [[Core Function DoEvents|DoEvents( )]] -- Keep GUI window active by dispatching all messages in the queue
 
* [[Core Function DoEvents|DoEvents( )]] -- Keep GUI window active by dispatching all messages in the queue
 
===== Dialog Properties Get/Set Functions =====
 
* [[Core Function GUIState|GUIState( <expression> )]] -- Gets current GUI state
 
* [[Core Function GUISetState|GUISetState( <expression> )]] -- Sets GUI state
 
 
===== Control Creation Functions =====
 
* [[Core Function GUICreateButton|GUICreateButton( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a button
 
* [[Core Function GUICreateTextBox|GUICreateTextBox( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a Textbox
 
* [[Core Function GUICreateTextBoxEx|GUICreateTextBoxEx( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a multiline Textbox
 
* [[Core Function GUICreatePassword|GUICreatePassword( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a Passweord Box
 
* [[Core Function GUICreateLabel|GUICreateLabel( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a Label
 
* [[Core Function GUICreateCheckBox|GUICreateCheckBox( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a CheckBox
 
* [[Core Function GUICreateTimer|GUICreateTimer( <gui/container>, <name>, <interval> )]] -- Create a timer
 
* [[Core Function GUICreateDataGrid|GUICreateDataGrid( <gui/container>, <name>, <left>, <top>, <width>, <height> )]] -- Create a Data Grid
 
* [[Core Function GUICreateGroupBox|GUICreateGroupBox( <gui/container>, <name>, <text>, <left>, <top>, <width>, <height> )]] -- Create a GroupBox
 
* [[Core Function GUICreateTabSheet|GUICreateTabSheet( <gui/container>, <name>, <left>, <top>, <width>, <height> )]] -- Create a TabSheet
 
* [[Core Function GUICreateMenu|GUICreateMenu( <gui>, <menuitems> )]] -- Create a menu to place on a window
 
* [[Core Function GUICreateMenuItem|GUICreateMenuItem( <gui>, <name> )]] -- Create a menu item for use in a menu
 
 
===== Event Linking Functions =====
 
* [[Core Function GUILink|GUILink( <gui/guiobject>, <linktype> )]] -- Links an event to a GUI or GUI Object
 
 
===== Common Dialog/Control Properties Get/Set Functions =====
 
* [[Core Function GUIGetProp|GUIGetProp( <gui object>, <prop> )]] -- Get the value of a GUI objects property
 
* [[Core Function GUISetProp|GUISetProp( <gui object>, <prop>, <value> )]] -- Set the value of a GUI objects property
 
===== Common Dialog/Control Method Functions =====
 
* [[Core Function GUIPropInvoke|GUIPropInvoke( <gui/gui object>, <method> )]] -- Invoke a method of the GUI/GUIObject such as Focus()
 
 
===== GUIGetProp & GUISetProp Examples  =====
 
Here are some GUIGetProp & GUISetProp Examples that you might not figure out by yourself.
 
* [[GUI GetSet Prop Example Colour|Change colour of controls]] -- Shows how to change the background and foreground colour on Buttons, Windows etc.
 
 
===== Control Properties Get/Set Functions =====
 
* [[Core Function GUITimerStart|GUITimerStart( <timer> )]] -- Starts specified timer
 
* [[Core Function GUITimerStop|GUITimerStop( <timer> )]] -- Stops specified timer
 
* [[Core Function GUIDataGrid|GUIDataGrid( <datagrid> )]] -- Properties & Functions specifically for Data Grid
 
* [[Core Function GUITabSheet|GUITabSheet( <tabsheet> )]] -- Properties & Functions specifically for Tab Sheet
 
* [[Core Function GUIMenuItem|GUIMenuItem( <menuitem> )]] -- Properties & Functions specifically for Menu Items
 
  
 
===== Other GUI Functions =====
 
===== Other GUI Functions =====
* [[Core Function GUIMsgFilter|GUIMsgFilter( <gui>, <command> )]] -- Use a function to recieve all messages windows sends to the GUI window (HWND, MSG, WPARAM, LPARAM)
 
* [[Core Function GUICreateFont|GUICreateFont( <name>, <size>, <style> )]] -- Create a new font for use on buttons etc
 
* [[Core Function GUIFont|GUIFont( < font >, <setting>, <value> )]] -- Change the style, size etc on a font object
 
 
* [[Core Function MsgBox|MsgBox( <message>, <title>, <flag>, <timeout> )]] -- Show a message dialog
 
* [[Core Function MsgBox|MsgBox( <message>, <title>, <flag>, <timeout> )]] -- Show a message dialog
 
* [[Core Function InputBox|InputBox( <title>, <message>, <default text> )]] -- Shows a box to input text.
 
* [[Core Function InputBox|InputBox( <title>, <message>, <default text> )]] -- Shows a box to input text.

Revision as of 18:36, 12 December 2011

Contents

Function Reference

How to create a Function

To create your own funtions see the Function page.

Core Functions

Language Features

Console Functions

Multi-Threading Functions

Variable Type Conversions

Common Variable Functions

Misc
Hash/Array
Type Checking
Get Type Directly

Binary Data Management Functions

Math Functions

String Functions

Array Functions

Hash (Dictionary) Functions

Process Functions

Environment Management

File Functions

File Create/Read/Write Functions
Misc
Dialogs

Directory Functions

Dialogs

Path Functions

Network Functions

HTTP Functions
MySQL Functions
Sputnik Client/Server Functions (This is just for connecting Sputnik Clients to Sputnik Servers nothing else)
Misc Network Functions

Memory Functions

GUI Functions

Dialog Creation Functions
Other GUI Functions

Keyboard Control Functions

Mouse Control Functions

Window Management Functions

(For info on using <title>, <text> See Window Titles and Text (Advanced) )

Controls

(For info on using <title>, <text> See Window Titles and Text (Advanced) )

Graphics/Pixel Functions

Misc Functions

User Defined Functions

These functions are created using Sputnik and are not part of the Sputnik core language.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox