Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Handle


...

Gets the handle of the current PlanSwift application.

...

    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
languagedelphi
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
// PlanSwift Code:
var
  nHandle: integer;
begin
  nHandle := PlanSwift.Handle; 
end;


//FreshDesk Code:
procedure TForm1.psHandle(Sender: TObject);
var
  ps: IPlanSwift;
  h: Integer;
begin
//Create Planswift Interface
 ps := coPlanswift.Create;
 //Get Planswift window Handle
 h := ps.Handle;
 //Minimize/Maximize Planswift
 ShowWindow(h, SW_RESTORE);
 //Free Planswift Interface
 ps := nil;
 
end;

C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}


Code Block
languagec#
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon

VB/VBA (OLE)

Code Block
languagevb
firstline1
titleUsing IItem Object Model
linenumberstrue
Coming soon


Code Block
languagevb
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon