Licence Protector

SetLicViewerButton

Hide Navigation Pane

SetLicViewerButton

Previous topic Next topic No directory for this topic  

SetLicViewerButton

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

 

Defines the buttons, which are visible within the License Viewer. To invoke the License Viewer see ShowLicViewer or for EasyGo see SetRegisterSettings (LicViewerAllowed)

 

 

Name

SetLicViewerButton                                                                            

Purpose

Disables or removes a button from the License Viewer.

Params

Parameter

Type

Example

Note

Button

Integer

1

The button code:

1 = Activate/Deactivate - Button

2 = Activation Key - Button

3 = Info - Button

4 = Options - Button

5 = Help – Button (no longer in use)

6 = Transfer/Adopt/Deactivate – Button

7 = Refresh - Button

Value

Integer

0

The show/visible type:

0 = invisible

1 = visible but never active

2 = visible and active

Returncode

Returncode

Type Integer

Note

0

Button mode successfully set

4101

A parameter is invalid. Only the values described above are valid.

Other value

Error occurred, see list of return codes

Usage

To customize the License Viewer as a real viewer without the ability to change something. Only some administrative users will get the License Viewer with activated buttons to change things.

Note: You can’t disable or remove the Close – Button.

Sample

 

  iRes := lic.SetLicViewerButton(1 , 0); // do not show the activate button

  if iRes = 0 then

     iRes := lic.SetLicViewerButton(2 , 0); // do not show the enter key button

  if iRes = 0 then

     iRes := lic.SetLicViewerButton(3 , 0); // do not show the info button

  if iRes = 0 then

     iRes := lic.SetLicViewerButton(4 , 2); // show the options button

  if iRes = 0 then

     iRes := lic.SetLicViewerButton(5 , 2); // show the help button

  if iRes = 0 then

     iRes := lic.SetLicViewerButton(6 , 2); // show the Transfer/Adopt button

 

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

     << Buttons successfully set, showing License Viewer>>

    lic.ShowLicViewer;

     ...

See also

ShowLicViewer

 

The help button is no longer available due to the fact that we do not distribute CHM files any longer.