...
- 1. Create a New Form application
- 2. Add a button to the form
- 3. Add Planswift to reference (Planswift9_tlb in the uses)
- 4. Copy code to button onclick event
API Calls
Delphi
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
procedure TForm1.psGetZoom(Sender: TObject); var ps: IPlanSwift; zoom: string; begin //Create Planswift Interface ps := coPlanswift.Create; //Call inputbox to change the zoom level zoom := InputBox('Change Zoom Level','Change Zoom Level',FloatToStr(ps.Zoom)); //Set Zoom Value ps.Zoom := strToInt(zoom); //Free Planswift Interface ps := nil; end; |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
C#
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
VB/VBA (OLE)
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Pascal Scripting (OLE)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Code Block | ||||
---|---|---|---|---|
| ||||
Pascal Scripting
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Code Block | ||||
---|---|---|---|---|
| ||||