| Event |
| VwXOnInit | def VwXOnInit(event) | Init Application |
| VwXOnExit | def VwXOnExit(event) | Exit Application |
| VwXOnUnLoadScript | def VwXOnUnLoadScript(event) | Unload script |
| VwXOnOpenPrj | def VwXOnOpenPrj(event) | Open project event.path = Path project event.file = File project |
| VwXOnClosePrj | def VwXOnClosePrj(event) | Close project event.path = Path project event.file = File project |
| VwXOnOpenFile | def VwXOnOpenFile(event) | Open file event.path = File path event.file = File name event.id = Id file |
| VwXOnCloseFile | def VwXOnCloseFile(event) | Close file event.path =File path event.file =File name event.id =Id file |
| VwXOnGeneratingCode | def VwXOnGeneratingCode(event) | Generating Code event.textSource = Text source code event.textInclude = Text include code |
| VwXOnCompile | def VwXOnCompile(event) | Compile event.path = File path event.file = File name |
| VwXOnRunProgram | def VwXOnRunProgram(event) | Compile event.path = File path event.file = File name |
| VwXOnAddControl | def VwXOnAddControl(event) | Add control in active Frame event.id = VwX Id control event.crt = control |
| VwXOnDeleteControl | def VwXOnDeleteControl(event) | Add control in active Frame event.id = VwX Id control event.crt = control |
| VwXOnAddSizer | def VwXOnAddSizer(event) | Add sizer in active Frame event.id = VwX Id sizer event.sizer = sizer |
| VwXOnDeleteSizer | def 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 |
| LoadScript | bool LoadScript(string,type) | Load script: LoadScript("modulo",0) #ide script LoadScript("modulo",1) #project script |
| ReloadScript | bool ReloadScript(string) | Reload script |
| UnloadScript | bool UnLoadScript(string) | UnLoad script |
| Initialize | Initialize script.. don't use | don't use |
| MessageBox | long MessageBox(message,style,caption) | see wxWidgets help |
| InputBox | string InputBox(message,defaultValue,caption) | Get input string |
| GetLastError | long GetLastError() | Get last error |
| GetVariable | string GetVariable(varName) | Get variable |
| SelLogPanel | long SelLogPanel() | Select log panel |
| LogStdOut | LogStdOut(string) | log stdout |
| LogStdErr | LogStdErr | log stderr |
| LogError | LogError(string) | Log errors |
| |
| Vprj.Functions |
| EnChkCtrSiz | long EnChkCtrSiz(long) | Enable check control & sizer |
| EnEvAddComp | long EnEvAddComp(long) | Enable event Add Comp |
| EnEvLoadAddComp | long EnEvLoadAddComp(long) | Enable event Add Comp (load design file) |
| EnEvLoadAddSizer | long EnEvLoadAddSizer(long) | Enable event Add Sizer (load design file) |
| EnEvAddSizer | long EnEvAddSizer(long) | Enable event Add Sizer |
| GetEnGenerateCode | long GetEnGenerateCode() | Get enable generate code 0 = disable 1= enable |
| SetEnGenerateCode | long SetEnGenerateCode(enable) | Set enable generate code 0 = disable 1= enable |
| RegenerateCode | long RegenerateCode() | Regenerate code |
| OpenProject | long OpenProject(file) | Open Project |
| SaveProject | long OpenProject() | Save Project |
| Build | long Build() | Build |
| Rebuild | long Rebuild() | Rebuild |
| SetActiveConf | long SetActiveConf(conf) | Set active configuration conf=configuration name |
| SetActiveConfInt | long SetActiveConfInt(conf) | Set active configuration conf=configuration id |
| GetActiveConf | conf GetActiveConf() | Get active configuration |
| GetActiveConfInt | id GetActiveConfInt() | Get active configuration id |
| SetDefClassName | long SetClassName(isFunc,funcPref) | isFunc : VwXctr.codeCLASS_NAME = name is a "class name" VwXctr.codeCLASS_FUNC = name is a "func name" funcPref = function name prefix |
| GetFramework | long GetFramework() | Get compiler type |
| GetCompiler | long GetCompiler() | Get compiler type |
| GetPath | path GetPath() | Get project path |
| GetActiveFile | id GetActiveFile() | Get Active file |
| |
| Vctr.Functions |
| GetCtrSizList | list 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 |
| AddControl | idComponent AddControl(type,parent) | Add control to current Frame |
| GetCtrEventList | list GetCtrEventList(crt) | Get ctr event list |
| EnableEvent | long EnableEvent(ctr,event,enable) | enable event disable = 0 enable = 1
|
| GetEventName | string GetEventName(event) | Get event name |
| GetEventFunction | string GetEventFunction(ctr,event) | Get eventfunction name |
| GetEventFuncCode | string GetEventFuncCode(ctr,event) | Get eventfunction name |
| GetStyle | style GetStyle(ctr) | Get style component |
| SetStyle | long SetStyle(ctr,style) | Set style |
| GetExtraStyle | style GetExtraStyle(ctr) | Get extra style component |
| SetExtraStyle | long SetExtraStyle(ctr,style) | Set style |
| GetId | id GetId(ctr) | Get id control |
| GetIdVwX | id GetIdVwX(crt) | Get VwX id component from control\sizer |
| GetFromIdVwX | crtsiz GetFromIdVwX(id) | Get control\sizer from VwX id component |
| GetType | type GetType(crt) | Get type component |
| GetFrame | crt GetFrame() | Get Frame |
| GetActive | crt GetActive() | Get active component (control\sizer) |
| SetActive | long SetActive(ctrsizN) | Set active component (control\sizer) |
| IsCtr | long IsCtr(ctrsiz) | Returns true if control |
| IsSizer | long IsCrt(crtsiz) | Returns true if sizer |
| IsContenitor | long IsContenitor(ctr) | Returns true if contenitor |
| GetClass | string GetClass(ctrsiz) | Get name control\sizer |
| GetName | string GetName(ctrsiz) | Get name control\sizer |
| SetName | long SetName(ctrsiz,name) | Set name |
| GetWinName | string GetWinName(ctr) | Get window name |
| SetWinName | long SetWinName(ctr,name) | Set window name |
| GetIndex | index GetIndex(ctr) | Get index component |
| SetIndex | long SetIndex(ctr,index) | Set index component |
| GetBackColor | colour GetBackColor(ctr) | Get background color |
| SetBackColor | long SetBackColor(ctr,VwX.colour) | Set background color |
| GetForeColor | colour GetForeColor(ctr) | Get foreground color |
| SetForeColor | long SetForeColor(ctr,VwX.colour) | Set foreground color |
| GetFont | font GetFont(ctr) | Get font |
| SetFont | long SetFont(ctr,font) | Set font |
| GetPos | (x,y) GetPos(ctrsiz) | Get control position |
| SetPos | long SetPos(ctrsiz,x,y) | Set control position |
| GetSize | (w,h) GetSize(ctrsiz) | Get size control\sizer |
| SetSize | long SetSize(ctrsiz,w,h) | Set size control\sizer |
| Freeze | long Freeze(ctr) | Freeze component |
| Thaw | long Thaw(ctr) | Thaw control |
| GetToolTip | string GetToolTip(ctr) | Get tooltip |
| SetToolTip | long SetToolTip(ctr,string) | Set tooltip |
| GetTitle | string GetTitle(ctr) | Get title |
| SetTitle | long SetTitle(ctr,string) | Set title |
| GetEnable | bool GetEnable(ctr) | Get enable control |
| SetEnable | long SetEnable(ctr,long) | Set enable control |
| GetVisible | bool GetVisible(ctr) | Get visible control |
| SetVisible | long SetVisible(ctr,long) | Set visible control |
| GetLabel | string GetLabel(ctr) | Get label control |
| SetLabel | long SetLabel(ctr,string) | Set label control |
| GetParent | crt GetParent(ctrsiz) | Get parent control |
| SetParent | long SetParent(crt,parentCtr) | Set parent control |
| GetVisibleD | bool GetVisibleD(ctr) | Get visible control (designe) |
| SetVisibleD | long SetVisibleD(ctr,long) | Set visible control (designe) |
| Refresh | long Refresh(ctr) | Refresh control |
| Layout | long Layout(ctrsiz) | Relayout component |
| |
| Vsiz.Functions |
| AddSizer | crtsizer AddSizer(type,parent) | Add sizer to current Frame |
| GetName | string GetName(ctrsiz) | Get name control\sizer |
| SetName | long SetName(ctrsiz,name) | Set name |
| GetTitle | string GetTitle(siz) | Get title sizer (only wxStaticBoxSizer) |
| SetTitle | long SetTitle(siz,title) | Set title sizer (only wxStaticBoxSizer) |
| SetPrFlagsBrd | long SetPrFlagsBrd(ctrsiz,prop,flags,border) | Set proportion,flags,border (sizer) |
| GetFlags | long GetFlags(ctrsiz) | Get flags (sizer) |
| GetProp | long GetProp(ctrsiz) | Get proportion (sizer) |
| GetBorder | long GetBorder(ctrsiz) | Get border (sizer) |
| SetCols | long SetCols(siz,cols) | Sets the number of columns (sizer) |
| SetRows | long SetRows(siz,rows) | Sets the number of rows (sizer) |
| SetHGap | long SetHGap(siz,gap) | Sets HGap (sizer) |
| SetVGap | long SetVGap(siz,gap) | Sets VGap (sizer) |
| AddGrowableRow | long AddGrowableRow(siz,row) | Add growable row (sizer) |
| AddGrowableCol | long AddGrowableCol(siz,col) | Add growable col (sizer) |
| GetParent | siz GetParent(ctrsiz) | Get parent sizer |
| SetParent | siz SetParent(crtsiz) | Set parent sizer |
| |
| Vedit.Functions |
| GetText | string GetText() | Get text from active Editor. |
| SetText | SetText(string) | Set text in the active editor. |
| ReplaceSelection | ReplaceSelection(string) | Replace text in the active editor. |
| InsertText | long InsertText(long start,long end) | Insert text in the active editor. |
| SetSelection | SetSelection(long start,long end) | Set selection text in the active editor. |
| GetSelectionText | string GetSelectionText() | Get selection text (Editor). |
| GotoLine | GotoLine(long) | Go to line in the active editor. |
| GotoPos | GotoPos(long) | Go to pos in the active editor. |
| EnsureVisible | EnsureVisible(long line) | visible line |
| |
| Vcode.Functions |
| GetClassName | string GetClassName(ctrsiz) | Set class name (code properties) |
| GetClassFunc | string GetClassFunc(ctrsiz) | Set class name (code properties) |
| GetClassNameType | long GetClassNameType(ctrsiz) | Get class name type (code properties) return value: codeISCLASS_NAME = name is a "class name" - codeISCLASS_FUNC = name is a "func name" |
| SetClassName | long 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 |
| GetHeaderFile | string GetHeaderFile(ctrsiz) | Get Header File (code properties) |
| SetHeaderFile | long SetHeaderFile(ctrsiz,name) | Set header file (code properties) |
| GetBaseClass | string GetBaseClass(ctrsiz) | Get base class (code properties) |
| SetBaseClass | long SetBaseClass(ctrsiz,name) | Set base class (code properties) |
| GetBeforeNew | string GetBeforeNew(ctrsiz) | Get before new code (code properties) |
| SetBeforeNew | long SetBeforeNew(ctrsiz,name) | Set before new code (code properties) |
| GetAfterNew | string GetAfterNew(ctrsiz) | Get after new code (code properties) |
| SetAfterNew | long SetAfterNew(ctrsiz,name) | Set after new code (code properties) |
| GetEnableCtor | long GetEnableCtor(ctr) | Get enable ctor code (code properties) enable = 1 disable = 0 |
| SetEnableCtor | long SetEnableCtor(ctr,enable) | Get enable ctor code (code properties) enable = 1 disable = 0 |
| GetBegEvt | string GetBegEvt() | Get beginning event code (code properties) |
| GetBegEvtMenu | string GetBegEvtMenu() | Get beginning menu event code (code properties) |
| GetEnHeaders | long GetEnHeaders() | Get enable headers (code properties) |
| SetEnHeaders | long SetEnHeaders(long) | Set enable headers (code properties) |
| SetBegEvt | long SetBegEvt(code) | Set beginning event code (code properties) |
| SetBegEvtMenu | long SetBegEvtMenu(code) | Set beginning menu event code(code properties) |
| |
| Vfile.Functions |
| Add | idfile Add(fileType,filePath,fileName) | Add file |
| GetNameFromId | string GetNameFromId(long) | Get name file from id |
| GetIdFromName | id GetIdFromName(file) | Get id file from name |
| GetNextIdFromName | id GetNextIdFromName(name.idfile) | Get next id file from name |
| GetPath | path GetPath(idFile) | Get project path |
| IsDesignFile | long IsDesignFile(idfile) | Get file type |
| GetType | long GetType(idfile) | Get file type |
| Save | long Save(idfile) | Save file |
| Close | long Close(idfile) | Close file |
| Open | long Open(idfile) | Open File |
| IsOpen | long IsOpen(idfile) | This returns non-zero if the file is open and 0 if it is close |
| SetModify | long SetModify(idfile,modify) | Set file modified |
| GetModify | long GetModify(idfile) | This returns non-zero if the file is modified and 0 if it is unmodified |
| GetFileListId | idList GetFileListId() | Get List of Id files |
| GetOpenFileListId | idList GetOpenFileListId() | Get List of open files Id |
| |
| Vfolder.Functions |
| GetIdFromName | id GetIdFromName(name) | Get id folder from name |
| GetNextIdFromName | id GetNextIdFromName(name,idfolder) | Get next id folder from name |
| SetActive | long SetActive(idfolder) | Set Active folder |
| Add | long Add(idfolderPar) | Add folder idfolderPar : id folder or VwXvar.ACTIVE_FOLDER |
| |
| Vtimer.Functions |
| AddTimer | idtimer AddTimer(milliseconds,function,dataOrSelf) | Add timer event function : def func(dataOrSelf,idtimer) |
| RemoveTimer | idtimer RemoveTimer(idtimer) | Remove timer |
| StartTimer | long StartTimer(idtimer,continuous) | Start Timer 1=one shot 0=continuous |
| StopTimer | long StopTimer(idtimer) | Stop timer if idtimer = 0 stop all timers |
| TimerIsRunning | long TimerIsRunning(idtimer) | Timer Is Running 1= is running |
| GetTimerInterval | long GetTimerInterval(idtimer) | Get timer interval |
| SetTimerFunction | long SetTimerFunction(idtimer,function) | Set timer function event function : def func(dataOrSelf,idtimer) |
| SetTimerData | long SetTimerData(idtimer,data) | Set timer data |
| |
| VNEdit.Functions |
| EnUpdateList | long EnUpdateList(long) | Enable check control & sizer |
| Save | long Save(idfile) | Elaborate code |
| PrintCode | long PrintCode(idfile,code) | print node code |
| CompileCode | long CompileCode(idfile) | Elaborate code |
| AddNodeCode | node AddNodeCode(idfile,parent,nodeType,insert) | Add node code Insert Options: VWX_NODE_APPEND VWX_NODE_BEFINSERT VWX_NODE_AFTINSERT
|
| AddNodeFile | node AddNodeFile(idfile,fileType) | Add node file |
| UpdateList | long UpdateList(idfile) | Update list panel |
| DeleteNode | long DeleteNode(idfile,node) | Add node file |
| GetNodeFromKey | node GetNodeFromKey(idfile,key) | Get node from key |
| SetNodeTitle | long SetNodeTitle(idfile,node,title) | Set node title |
| GetNodeTitle | string GetNodeTitle(idfile,node) | Get node name |
| SetNodeKey | long SetNodeKey(idfile,node,key) | Set node Key |
| GetNodeKey | string GetNodeKey(idfile,node) | Get node Key |
| SetNodeRetVal | long SetNodeRetVal(idfile,node,retV) | Set node return value |
| GetNodeRetVal | string GetNodeRetVal(idfile,node) | Get node return value |
| SetNodeName | long SetNodeName(idfile,node,name) | Set node name |
| GetNodeName | string GetNodeName(idfile,node) | Get node name |
| SetNodeProp | long SetNodeProp(idfile,node,prop) | Set node properties |
| GetNodeProp | long GetNodeProp(idfile,node) | Get node properties |
| SetNodeType | long SetNodeType(idfile,node,type) | Set node type |
| GetNodeType | long GetNodeType(idfile,node) | Get node type |
| SetRonlyNode | long SetRonlyNode(idfile,node,ronly) | Set readonly node |
| GetRonlyNode | long GetRonlyNode(idfile,node) | Get readonly node |
| SetEnableNode | long SetEnableNode(idfile,node,enable) | Set enable node |
| GetEnableNode | long GetEnableNode(idfile,node) | Get enable node |
| SetFileName | long SetFileName(idfile,node,name) | Set file name |
| GetFileName | string GetFileName(idfile,node) | Get file name |
| SetFilePath | long SetFileName(idfile,node) | Set file path |
| GetFilePath | string GetFileName(idfile,node) | Get file path |
| SetFileType | long SetFileType(idfile,node,type) | Set file type |
| GetFileType | long GetFileType(idfile,node) | Get file type |
| SetFileSync | long SetFileSync(idfile,node,filesync) | Set sync files |
| GetFileSync | string GetFileSync(idfile,node) | Get sync files |
| SetFileEnLink | long SetFileEnLink(idfile,node,enlink) | Set enable linking file |
| GetFileEnLink | long GetFileEnLink(idfile,node) | Get enable linking file |
| SetFileEnCompile | long SetFileEnCompile(idfile,node,encomp) | Set enable compile file |
| GetFileEnCompile | long GetFileEnCompile(idfile,node) | Get enable compile file |
| SetCode | long SetCode(idfile,node,code,codeType) | Set node code if codeType == 1 return code if codeType == 2 return elaborate code |
| GetCode | string GetCode(idfile,node,codeType) | Get node code if codeType == 1 return code if codeType == 2 return elaborate code |
| SetEndCode | long SetEndCode(idfile,node,code) | Set node code |
| GetEndCode | string GetEndCode(idfile,node) | Get node code |
| SetInitSpacesCount | long SetInitSpacesCount(idfile,node,numspaces) | Set init code spaces |
| GetInitSpacesCount | long GetInitSpacesCount(idfile,node) | Get init code spaces count |
| SetCodeReturnFlag | long SetCodeReturnFlag(idfile,node,flag) | Set code return flag VWX_NODE_MOVE VWX_NODE_NOMOVE VWX_NODE_NOCHANGEPARENT VWX_NODE_NOAPPEND VWX_NODE_NODELETE |
| GetCodeReturnFlag | long GetCodeReturnFlag(idfile,node) | Get code return flag VWX_NODE_MOVE VWX_NODE_NOMOVE VWX_NODE_NOCHANGEPARENT VWX_NODE_NOAPPEND VWX_NODE_NODELETE |