VisualWx
 Home |  Forum |  Tutorials |  Screenshots |  LF |  Downloads |  Reporting bugs |

Privacy Policy

User
User:
Password:

Recent topic

Recent post


Link

Script

Event
VwXOnInitdef VwXOnInit(event)Init Application
VwXOnExitdef VwXOnExit(event)Exit Application
VwXOnUnLoadScriptdef VwXOnUnLoadScript(event)Unload script
VwXOnOpenPrjdef VwXOnOpenPrj(event)Open project
event.path = Path project
event.file = File project
VwXOnClosePrjdef VwXOnClosePrj(event)Close project
event.path = Path project
event.file = File project
VwXOnOpenFiledef VwXOnOpenFile(event)Open file
event.path = File path
event.file = File name
event.id = Id file
VwXOnCloseFiledef VwXOnCloseFile(event)Close file
event.path =File path
event.file =File name
event.id =Id file
VwXOnGeneratingCodedef VwXOnGeneratingCode(event)Generating Code
event.textSource = Text source code
event.textInclude = Text include code
VwXOnCompiledef VwXOnCompile(event)Compile
event.path = File path
event.file = File name
VwXOnRunProgramdef VwXOnRunProgram(event)Compile
event.path = File path
event.file = File name
VwXOnAddControldef VwXOnAddControl(event)Add control in active Frame
event.id = VwX Id control
event.crt = control
VwXOnDeleteControldef VwXOnDeleteControl(event)Add control in active Frame
event.id = VwX Id control
event.crt = control
VwXOnAddSizerdef VwXOnAddSizer(event)Add sizer in active Frame
event.id = VwX Id sizer
event.sizer = sizer
VwXOnDeleteSizerdef VwXOnDeleteSizer(event)Add sizer in active Frame
event.id = VwX Id sizer
event.sizer = sizer
 
VwX.classes

class font:
def __init__(self,font=\"\",size=0,bold=0,style=0,underlined=0):
self.font=font
self.size=size
self.bold=bold
self.style=style
self.underlined=underlined
def IsDefault(self):
if(self.font==\"\"):return 1
return 0
class colour:
def __init__(self,red=-1,green=-1,blue=-1,SystemColour=-1):
self.red=red
self.green=green
self.blue=blue
self.SystemColour=SystemColour
def IsDefault(self):
if((self.SystemColour==-1)and((self.red==-1)and(self.green==-1)and(self.red==-1))):return 1
return 0
 
VwX.Functions
LoadScriptbool LoadScript(string,type)Load script:
LoadScript("modulo",0) #ide script
LoadScript("modulo",1) #project script
ReloadScriptbool ReloadScript(string)Reload script
UnloadScriptbool UnLoadScript(string)UnLoad script
InitializeInitialize script.. don't usedon't use
MessageBoxlong MessageBox(message,style,caption)see wxWidgets help
InputBoxstring InputBox(message,defaultValue,caption)Get input string
GetLastErrorlong GetLastError()Get last error
GetVariablestring GetVariable(varName)Get variable
SelLogPanellong SelLogPanel()Select log panel
LogStdOutLogStdOut(string)log stdout
LogStdErrLogStdErrlog stderr
LogErrorLogError(string)Log errors
 
Vprj.Functions
EnChkCtrSizlong EnChkCtrSiz(long)Enable check control & sizer
EnEvAddComplong EnEvAddComp(long)Enable event Add Comp
EnEvLoadAddComplong EnEvLoadAddComp(long)Enable event Add Comp (load design file)
EnEvLoadAddSizerlong EnEvLoadAddSizer(long)Enable event Add Sizer (load design file)
EnEvAddSizerlong EnEvAddSizer(long)Enable event Add Sizer
OpenProjectlong OpenProject(file)Open Project
SaveProjectlong OpenProject()Save Project
Buildlong Build()Build
Rebuildlong Rebuild()Rebuild
SetActiveConflong SetActiveConf(conf)Set active configuration
conf=configuration name
SetActiveConfIntlong SetActiveConfInt(conf)Set active configuration
conf=configuration id
GetActiveConfconf GetActiveConf()Get active configuration
GetActiveConfIntid GetActiveConfInt()Get active configuration id
SetDefClassNamelong SetClassName(isFunc,funcPref)isFunc :
VwXctr.codeCLASS_NAME = name is a "class name"
VwXctr.codeCLASS_FUNC = name is a "func name"
funcPref = function name prefix
GetFrameworklong GetFramework()Get compiler type
GetCompilerlong GetCompiler()Get compiler type
GetPathpath GetPath()Get project path
GetFileNamestring GetFileName()Get project file name
GetActiveFileid GetActiveFile()Get Active file
 
Vctr.Functions
GetCtrSizListlist GetCtrSizList(crtsiz)Get ctr\sizer list
if crtsiz = VwXctr.SelectParent get list from select contenitor
if crtsiz = VwXctr.FrameParent get list from select parent frame
AddControlidComponent AddControl(parent,type)Add control to current Frame
GetCtrEventListlist GetCtrEventList(crt)Get ctr event list
EnableEventlong EnableEvent(ctr,event,enable)enable event
disable = 0
enable = 1
GetEventNamestring GetEventName(event)Get event name
GetEventFunctionstring GetEventFunction(ctr,event)Get eventfunction name
SetEventFunctionstring SetEventFunction(ctr,event,function)Get eventfunction name
GetEventFuncCodestring GetEventFuncCode(ctr,event)Get eventfunction name
GetStylestyle GetStyle(ctr)Get style component
SetStylelong SetStyle(ctr,style)Set style
GetExtraStylestyle GetExtraStyle(ctr)Get extra style component
SetExtraStylelong SetExtraStyle(ctr,style)Set style
GetIdid GetId(ctr)Get id control
GetIdVwXid GetIdVwX(crt)Get VwX id component from control\sizer
GetFromIdVwXcrtsiz GetFromIdVwX(id)Get control\sizer from VwX id component
GetTypetype GetType(crt)Get type component
GetFramecrt GetFrame()Get Frame
GetActivecrt GetActive()Get active component (control\sizer)
SetActivelong SetActive(ctrsizN)Set active component (control\sizer)
IsCtrlong IsCtr(ctrsiz)Returns true if control
IsSizerlong IsCrt(crtsiz)Returns true if sizer
IsContenitorlong IsContenitor(ctr)Returns true if contenitor
GetClassstring GetClass(ctrsiz)Get name control\sizer
GetNamestring GetName(ctrsiz)Get name control\sizer
SetNamelong SetName(ctrsiz,name)Set name
GetWinNamestring GetWinName(ctr)Get window name
SetWinNamelong SetWinName(ctr,name)Set window name
GetIndexindex GetIndex(ctr)Get index component
SetIndexlong SetIndex(ctr,index)Set index component
GetBackColorcolour GetBackColor(ctr)Get background color
SetBackColorlong SetBackColor(ctr,VwX.colour)Set background color
GetForeColorcolour GetForeColor(ctr)Get foreground color
SetForeColorlong SetForeColor(ctr,VwX.colour)Set foreground color
GetFontfont GetFont(ctr)Get font
SetFontlong SetFont(ctr,font)Set font
GetPos(x,y) GetPos(ctrsiz)Get control position
SetPoslong SetPos(ctrsiz,x,y)Set control position
GetSize(w,h) GetSize(ctrsiz)Get size control\sizer
SetSizelong SetSize(ctrsiz,w,h)Set size control\sizer
Freezelong Freeze(ctr)Freeze component
Thawlong Thaw(ctr)Thaw control
GetToolTipstring GetToolTip(ctr)Get tooltip
SetToolTiplong SetToolTip(ctr,string)Set tooltip
GetTitlestring GetTitle(ctr)Get title
SetTitlelong SetTitle(ctr,string)Set title
GetEnablebool GetEnable(ctr)Get enable control
SetEnablelong SetEnable(ctr,long)Set enable control
GetVisiblebool GetVisible(ctr)Get visible control
SetVisiblelong SetVisible(ctr,long)Set visible control
GetLabelstring GetLabel(ctr)Get label control
SetLabellong SetLabel(ctr,string)Set label control
GetParentcrt GetParent(ctrsiz)Get parent control
SetParentlong SetParent(crt,parentCtr)Set parent control
GetVisibleDbool GetVisibleD(ctr)Get visible control (designe)
SetVisibleDlong SetVisibleD(ctr,long)Set visible control (designe)
Refreshlong Refresh(ctr)Refresh control
Layoutlong Layout(ctrsiz)Relayout component
 
Vsiz.Functions
AddSizercrtsizer AddSizer(parent,type)Add sizer to current Frame
GetNamestring GetName(ctrsiz)Get name control\sizer
SetNamelong SetName(ctrsiz,name)Set name
GetTitlestring GetTitle(siz)Get title sizer (only wxStaticBoxSizer)
SetTitlelong SetTitle(siz,title)Set title sizer (only wxStaticBoxSizer)
SetPrFlagsBrdlong SetPrFlagsBrd(ctrsiz,prop,flags,border)Set proportion,flags,border (sizer)
GetFlagslong GetFlags(ctrsiz)Get flags (sizer)
GetProplong GetProp(ctrsiz)Get proportion (sizer)
GetBorderlong GetBorder(ctrsiz)Get border (sizer)
SetColslong SetCols(siz,cols)Sets the number of columns (sizer)
SetRowslong SetRows(siz,rows)Sets the number of rows (sizer)
SetHGaplong SetHGap(siz,gap)Sets HGap (sizer)
SetVGaplong SetVGap(siz,gap)Sets VGap (sizer)
AddGrowableRowlong AddGrowableRow(siz,row)Add growable row (sizer)
AddGrowableCollong AddGrowableCol(siz,col)Add growable col (sizer)
GetParentsiz GetParent(ctrsiz)Get parent sizer
SetParentsiz SetParent(crtsiz)Set parent sizer
 
Vedit.Functions
GetTextstring GetText()Get text from active Editor.
SetTextSetText(string)Set text in the active editor.
ReplaceSelectionReplaceSelection(string)Replace text in the active editor.
InsertTextlong InsertText(long start,long end)Insert text in the active editor.
SetSelectionSetSelection(long start,long end)Set selection text in the active editor.
GetSelectionTextstring GetSelectionText()Get selection text (Editor).
GotoLineGotoLine(long)Go to line in the active editor.
GotoPosGotoPos(long)Go to pos in the active editor.
EnsureVisibleEnsureVisible(long line)visible line
 
Vcode.Functions
GetClassNamestring GetClassName(ctrsiz)Set class name (code properties)
GetClassFuncstring GetClassFunc(ctrsiz)Set class name (code properties)
GetClassNameTypelong GetClassNameType(ctrsiz)Get class name type (code properties)
return value:
codeISCLASS_NAME = name is a "class name" - codeISCLASS_FUNC = name is a "func name"
SetClassNamelong SetClassName(ctrsiz,name,isFunc,funcName)Set class name (code properties)
ctrsiz = control or sizer
name = new class|function name
isFunc : codeISCLASS_NAME = name is a "class name" - codeISCLASS_FUNC = name is a "func name"
funcName = function name
GetHeaderFilestring GetHeaderFile(ctrsiz)Get Header File (code properties)
SetHeaderFilelong SetHeaderFile(ctrsiz,name)Set header file (code properties)
GetBaseClassstring GetBaseClass(ctrsiz)Get base class (code properties)
SetBaseClasslong SetBaseClass(ctrsiz,name)Set base class (code properties)
GetBeforeNewstring GetBeforeNew(ctrsiz)Get before new code (code properties)
SetBeforeNewlong SetBeforeNew(ctrsiz,name)Set before new code (code properties)
GetAfterNewstring GetAfterNew(ctrsiz)Get after new code (code properties)
SetAfterNewlong SetAfterNew(ctrsiz,name)Set after new code (code properties)
GetEnableCtorlong GetEnableCtor(ctr)Get enable ctor code (code properties)
enable = 1
disable = 0
SetEnableCtorlong SetEnableCtor(ctr,enable)Get enable ctor code (code properties)
enable = 1
disable = 0
GetBegEvtstring GetBegEvt()Get beginning event code (code properties)
GetBegEvtMenustring GetBegEvtMenu()Get beginning menu event code (code properties)
GetEnHeaderslong GetEnHeaders()Get enable headers (code properties)
SetEnHeaderslong SetEnHeaders(long)Set enable headers (code properties)
SetBegEvtlong SetBegEvt(code)Set beginning event code (code properties)
SetBegEvtMenulong SetBegEvtMenu(code)Set beginning menu event code(code properties)
 
Vfile.Functions
GetEnGenerateCodelong GetEnGenerateCode()Get enable generate code
0 = disable
1= enable
SetEnGenerateCodelong SetEnGenerateCode(enable)Set enable generate code
0 = disable
1= enable
GenerateCodelong GenerateCode()Regenerate code
RecreateCodelong RecreateCode()Regenerate code
Addidfile Add(fileType,filePath,fileName)Add file
AddFileidfile AddFile(idFolder,fileType,filePath,fileName)Add file
GetNameFromIdstring GetNameFromId(long)Get name file from id
GetIdFromNameid GetIdFromName(file)Get id file from name
GetNextIdFromNameid GetNextIdFromName(name.idfile)Get next id file from name
GetIdFromIdStrid GetIdFromIdStr(file)Get id file from name
GetPathpath GetPath(idFile)Get project path
IsDesignFilelong IsDesignFile(idfile)Get file type
GetTypelong GetType(idfile)Get file type
Savelong Save(idfile)Save file
Closelong Close(idfile)Close file
Openlong Open(idfile)Open File
IsOpenlong IsOpen(idfile)This returns non-zero if the file is open and 0 if it is close
SetModifylong SetModify(idfile,modify)Set file modified
GetModifylong GetModify(idfile)This returns non-zero if the file is modified and 0 if it is unmodified
GetFileListIdidList GetFileListId()Get List of Id files
GetOpenFileListIdidList GetOpenFileListId()Get List of open files Id
SetDesignModevoid SetDesignMode(long enable)Set edit Mode (frame file)
 
Vfolder.Functions
GetIdFromNameid GetIdFromName(name)Get id folder from name
GetNextIdFromNameid GetNextIdFromName(name,idfolder)Get next id folder from name
SetActivelong SetActive(idfolder)Set Active folder
Addlong Add(idfolderPar)Add folder
idfolderPar : id folder or VwXvar.ACTIVE_FOLDER
 
Vtimer.Functions
AddTimeridtimer AddTimer(milliseconds,function,dataOrSelf)Add timer
event function : def func(dataOrSelf,idtimer)
RemoveTimeridtimer RemoveTimer(idtimer)Remove timer
StartTimerlong StartTimer(idtimer,continuous)Start Timer
1=one shot
0=continuous
StopTimerlong StopTimer(idtimer)Stop timer
if idtimer = 0 stop all timers
TimerIsRunninglong TimerIsRunning(idtimer)Timer Is Running
1= is running
GetTimerIntervallong GetTimerInterval(idtimer)Get timer interval
SetTimerFunctionlong SetTimerFunction(idtimer,function)Set timer function
event function : def func(dataOrSelf,idtimer)
SetTimerDatalong SetTimerData(idtimer,data)Set timer data
 
VNEdit.Functions
EnUpdateListlong EnUpdateList(long)Enable check control & sizer
GetModifylong GetEnableNode(idfile)Get enable node
SetModifylong GetEnableNode(idfile,modify)Set modify file
Savelong Save(idfile)Elaborate code
GetCurrentNodenode GetCurrentNode()Get node
GetCurrentFileIdid GetCurrentFileId()Get Active file
GetCurrentStepstep GetCurrentStep(idfile)Get Active step
GetCurrentNodeStepstep GetCurrentStep()Get Active step
PrintCodelong PrintCode(idfile,code)print node code
RegenerateCodelong RegenerateCode(idfile)Regenerate code
CompileCodelong CompileCode(idfile)Elaborate code
AddNodeCodenode AddNodeCode(idfile,parent,nodeType,insert)Add node code
Insert Options:
VWX_NODE_APPEND
VWX_NODE_BEFINSERT
VWX_NODE_AFTINSERT
AddNodeFilenode AddNodeFile(idfile,fileType)Add node file
UpdateListlong UpdateList(idfile)Update list panel
DeleteNodelong DeleteNode(idfile,node)Add node file
GetNodesListlist GetNodesList(idfile,nodePar)Get nodes list
if nodepar==0 return root node
GetNodesCreateStringstring GetNodesCreateString(idfile,node,onlyNode)node = 0 save all nodes

onlyNode = 0 save only childs
onlyNode = 1 save node & childs
onlyNode = 2 save node
LoadNodesFromStrnode GetNodeFromKey(idfile,nodePar,nodesStr)Get node from string
LoadNodesFromFilenode GetNodeFromKey(idfile,nodePar,fileName)Get node from string
GetNodeFromKeynode GetNodeFromKey(idfile,key)Get node from key
SetNodeTitlelong SetNodeTitle(idfile,node,title)Set node title
GetNodeTitlestring GetNodeTitle(idfile,node)Get node name
SetNodeKeylong SetNodeKey(idfile,node,key)Set node Key
GetNodeKeystring GetNodeKey(idfile,node)Get node Key
SetSpaceNodeKeylong SetSpaceNodeKey(idfile,node,key)Set node Key
GetSpaceNodeKeystring GetSpaceNodeKey(idfile,node)Get node Key
SetNodeRetVallong SetNodeRetVal(idfile,node,retV)Set node return value
GetNodeRetValstring GetNodeRetVal(idfile,node)Get node return value
SetNodeNamelong SetNodeName(idfile,node,name)Set node name
GetNodeNamestring GetNodeName(idfile,node)Get node name
SetNodeProplong SetNodeProp(idfile,node,prop)Set node properties
GetNodeProplong GetNodeProp(idfile,node)Get node properties
SetNodeTypelong SetNodeType(idfile,node,type)Set node type
GetNodeTypelong GetNodeType(idfile,node)Get node type
SetRonlyNodelong SetRonlyNode(idfile,node,ronly)Set readonly node
GetRonlyNodelong GetRonlyNode(idfile,node)Get readonly node
SetEnableChildrenlong SetEnableChildren(idfile,node,enable,recursive)Enable children
recursive:
1 = enable\disbale parent
2 = enable\disbale children
SetEnableNodelong SetEnableNode(idfile,node,enable)Set enable node
GetEnableNodelong GetEnableNode(idfile,node)Get enable node
GetEscCharlong GetEscChar(idfile,node)Get enable node
SetEscCharlong SetEscChar(idfile,node,charEsc)Set escape char
GetEnEscCharlong GetEnEscChar(idfile,node)Get enable node
SetEnEscCharlong SetEnEscChar(idfile,node,enable)Set enable node
SetFileNamelong SetFileName(idfile,node,name)Set file name
GetFileNamestring GetFileName(idfile,node)Get file name
SetFilePathlong SetFileName(idfile,node)Set file path
GetFilePathstring GetFileName(idfile,node)Get file path
SetFileTypelong SetFileType(idfile,node,type)Set file type
GetFileTypelong GetFileType(idfile,node)Get file type
SetFileSynclong SetFileSync(idfile,node,filesync)Set sync files
GetFileSyncstring GetFileSync(idfile,node)Get sync files
SetFileEnLinklong SetFileEnLink(idfile,node,enlink)Set enable linking file
GetFileEnLinklong GetFileEnLink(idfile,node)Get enable linking file
SetFileEnCompilelong SetFileEnCompile(idfile,node,encomp)Set enable compile file
GetFileEnCompilelong GetFileEnCompile(idfile,node)Get enable compile file
SetCodelong SetCode(idfile,node,code,codeType)Set node code
if codeType == 1 set code
if codeType == 2 set elaborate code
GetCodestring GetCode(idfile,node,codeType)Get node code
if codeType == 1 return code
if codeType == 2 return generated code
SetEndCodelong SetEndCode(idfile,node,code)Set node code
GetEndCodestring GetEndCode(idfile,node)Get node code
SetInitSpacesCountlong SetInitSpacesCount(idfile,node,numspaces)Set init code spaces
GetInitSpacesCountlong GetInitSpacesCount(idfile,node)Get init code spaces count
SetCodeReturnFlaglong SetCodeReturnFlag(idfile,node,flag,enable)Set code return flag
VWX_NODE_MOVE
VWX_NODE_NOMOVE
VWX_NODE_NOCHANGEPARENT
VWX_NODE_NOAPPEND
VWX_NODE_NODELETE
GetCodeReturnFlaglong GetCodeReturnFlag(idfile,node)Get code return flag
VWX_NODE_MOVE
VWX_NODE_NOMOVE
VWX_NODE_NOCHANGEPARENT
VWX_NODE_NOAPPEND
VWX_NODE_NODELETE
SetNodeOptsFlaglong SetNodeOptsFlag(idfile,node,flag,enable)Set code options flag
VWX_NODE_MOVE=0
VWX_NODE_NOMOVE=1
VWX_NODE_NOCHANGEPARENT=2
VWX_NODE_NOAPPEND=4
VWX_NODE_NODELETE=8
VWX_NODE_NOINSBEF=16
VWX_NODE_NOINSAFT=32
VWX_NODE_NOTAGS=64
GetNodeOptsFlaglong GetNodeOptsFlag(idfile,node)
SetNodeCodeFlaglong SetNodeCodeFlag(idfile,node,flag,enable)Set code options flag
VWX_CODE_CDENOADD=1
VWX_CODE_CDEMPTYINIT=2
VWX_CODE_CDEMPTYSTEP=4
VWX_CODE_CDEBLOCKED=8
GetNodeCodeFlaglong GetNodeCodeFlag(idfile,node)
 
Vmenu.Functions
AddMenuBarmenuBar AddMenuBar()
AppendMenumenu AppendMenu(menuBar,title)
AppendSubMenubool AppendSubMenu(menu,title)
AppendSeparatorbool AppendSeparator(menu)
AppendItemitem AppendItem(menu,id,title,helstring,kind)
AddMenumenu AddMenu(title)
SetTitlelong SetTitle(menuItem,value)
SetNamelong SetName(menuItem,value)
SetIdNamelong SetIdName(menuItem,value)
SetIdValuelong SetIdValue(item,value)
SetHelplong SetHelp(menuItem,value)
SetShortCutlong SetShortCut(menuItem,value)
SetKindlong SetKind(item,value)
EnableEventlong EnableEvent(ctr,event,enable)enable event
disable = 0
enable = 1
SetItemBitmapbool SetItemBitmap(item,bitmapFile,bitmapType)
SetItemBitmap2bool SetItemBitmap2(item,bitmapFile,bitmapType)
SetItemBitmapResbool SetItemBitmapRes(item,bitmapRes,bitmapType)
SetItemBitmap2Resbool SetItemBitmap2Res(item,bitmapRes,bitmapType)
SetEventFunctionstring SetEventFunction(menuItem,event,function)Get eventfunction name