Icon NewState Method

function NewState(const AName: String; const FromName:
      String=''): TInterfaceState

Available In: Visual Client Applications

Use this method to create a new control interface state. The AName parameter indicates the name of the new state, and the optional FromName parameter indicates the name of an existing state that will be used to initialize the new state. If the state indicated by the AName parameter already exists, then an exception will be raised.
Image