This event is raised when a tab is activated for parameter entry.

syntaxSyntax:
function OnTab_...()

Remarks

The purpose of this function is to populate the tab for parameter entry. An event is generated for each tab defined through the DefineTabs function.

The name of the function that handles the event consists of the prefix OnTab_ followed by the name of the tab specified in the DefineTabs function. If the tab name contains spaces, they are filled in with the underscore character.

Example

See the TO-220 sample code for the complete script.

  Copy codeCopy code
function OnTab_Dimension()
{
  FWiz.AddIPCLevels(1);
  FWiz.AddSeparator("Body");
  FWiz.AddInput("A");
  FWiz.AddInput("D");
  FWiz.AddInput("E");
  FWiz.AddInput("F");
  FWiz.AddInput("H1");
  FWiz.AddInput("J1");
  FWiz.AddInput("L20");
  FWiz.AddInput("L30");
  FWiz.AddInput("P");
  FWiz.AddInput("Q");
  FWiz.AddSeparator("Leads");
  FWiz.AddInput("b");
  FWiz.AddInput("b1");
  FWiz.AddInput("c");
  FWiz.AddInput("e");
  FWiz.AddInput("L");
  FWiz.AddInput("L1");
  FWiz.AddSeparator("Tab");
  FWiz.AddInput("BEVELEDTAB");
}

function OnTab_Assembly()
{
  FWiz.AddSeparator("Body");
  FWiz.AddInput("BODYPEN");
  FWiz.AddInput("BODYBRUSH");
  FWiz.AddSeparator("Lead");
  FWiz.AddInput("LEADPEN");
  FWiz.AddInput("LEADBRUSH");
}

function OnTab_Pad_Style()
{
  FWiz.AddInput("PADSTYLE");
  FWiz.AddInput("PADSHAPEMODE");
}

function OnTab_3D_Model()
{
  FWiz.AddInput("BODYMAT");
  FWiz.AddInput("LEADMAT");
}

function OnTab_Info()
{
  FWiz.AddLibraryInfo();
}

See also