Interface IInputBoxFactory
External object that can create new instances of an InputBox window.
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public interface IInputBoxFactory
Methods
CreateInputBox()
Creates a new instance of an InputBox window. It can be used to ask some additional information from a user. After creation you can use methods of this instance to add properties of type you need:
- AddStringProp
- AddDoubleProp
- AddIntegerProp
- AddBooleanProp
- AddFilePathProp
- etc.
Declaration
IInputBox CreateInputBox()
Returns
Type | Description |
---|---|
IInputBox |
Remarks
string myProgName = "TestProg1";
int myProgNumber = 1000;
var bx = CreateInputBox();
bx.WindowCaption = "Input the program parameters please";
bx.StartGroup("Program parameters");
bx.AddStringProp("Name", myProgName, v => myProgName = v);
bx.AddIntegerProp("Number", myProgNumber, v => myProgNumber = v);
bx.CloseGroup();
bx.Show();