GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.waspscripts.com — Script Form Script Form¶Script Form is a opinionated,
A very basic This page is only about the very base of For information about pre-built panels you can find them on these pages: TScriptForm¶Main type for the TScriptForm. Built-in Callbacks¶TScriptForm has several built-in callbacks setup by default: ScriptForm.OnClose¶procedure TScriptForm.OnClose(sender: TLazObject; var closeAction: ELazFormCloseAction); Callback called when the Closing the form programatically with ScriptForm.Form.OnClose := nil; ScriptForm.Form.Close(); ScriptForm.OnStart¶procedure TScriptForm.OnStart(sender: TLazObject); This callback is ran on the The recommended usage for scripts would be to override this to setup your script
variables when it runs before calling Example: procedure TScriptForm.StartScript(sender: TLazObject); override; begin CurrentTask := ETask(Self.TaskSelector.GetItemIndex()); inherited; end; ScriptForm.Setup¶procedure TScriptForm.Setup(caption: String = 'Script Form'; size: TPoint = [750, 500]; allowResize: Boolean = False); Responsible for setting your TScriptForm up. This sets up the sekeleton of your TScriptForm ready to take in tabs. ScriptForm.CreateTab¶function TScriptForm.CreateTab(caption: String): TLazTabSheet; Methods to create and add tabs to This will create a new tab on the form and return it to you as the result so you add controls to it. Example: {$I WaspLib/main.simba} var form: TScriptForm; selector: TLazCombobox; tab: TLazTabSheet; begin form.Setup(); tab := form.CreateTab('House'); selector := TLazComboBox.CreateEx(tab); form.Run(); end. ScriptForm.AddTab¶procedure TScriptForm.AddTab(owner: Pointer); Adds an already existing ScriptForm.Run¶procedure TScriptForm.Run(); Runs and shows your |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |