PlugIn Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > PlugIn-Commands > PIS. - PlugIn Send >

PlugIn Commands

PIS.sbhvs - SetButtonsHVSize, sbhs, sbvs

Previous Top Next


MiniRobotLanguage (MRL)

 

PIS.SetButtonsHVSize Command

PIS.SetButtonsHSize Command

PIS.SetButtonsVSize Command

Set/Change Size of all Plugin-Buttons

 

 

Intention

 

The PIS.SetButtonsHVSize -Command will set or change the Size of the Buttons from the specified Buttonbar.

You can Re-Size the Buttons any time.

 

PIS.$$REA|SetButtonsHVSize|80|40

' Here we size the Buttons 80x40

 

clip0304

 

 

PIS.$$REA|SetButtonsHVSize|160|30

' Here we size the Buttons 160x30

 

clip0305

 

 

 

' If you specify a "0" as Size-Parameter, the value is not changed

PIS.$$REA|SetButtonsHVSize|80|0

 

 

 

 

Syntax

 

PIS.P1|SetButtonsHVSize|P2|P3

PIS.P1|sbhvs|P2|P3

 

PIS.P1|SetButtonsHSize|P2

PIS.P1|sbhs|P2

 

 

PIS.P1|SetButtonsVSize|P2

PIS.P1|sbvs|P2

 

 

 

Parameter Explanation

 

P1 - Variable which contains the PlugIn Index-No.

 

P2 - Value, first Size-Parameter in Pixel, if this value is "0" Size is not changed

 

only for the "sbhvs" - Command:

P3 - Value, second Size-Parameter in Pixel, if this value is "0" Size is not changed

 

All commands are specific for the type of PlugIn used.

 

 

Example

 

' This code is just a Syntax-Sample and will not run

PIS.$$REA|SetButtonsHVSize|80|40

PIS.$$REA|SetButtonsHVSize|270|90

PIS.$$REA|SetButtonsHSize|270

PIS.$$REA|SetButtonsVSize|90

 

 

Remarks

 

You can use up to 5 Plugins at the same time.

Just start them, each will get another Index.

To communicate with each PlugIn, you just give the PlugIn-Index to each command.

 

Button-Colors and transparency:

Please note that if you set Buttons transparent, that they can not have a background-color at the same time.

 

To set multiple Buttontext at once you can use:

PIS.$$PIN|sbt|all|Button %n

The "%n" is replaced with the number of that button.

The "all" and %n-scheme will also work with most other commands, where it makes sense.

 

 

Limitations:-

-

 

 

 

See also:

 

    PIL. - PlugIn Launch

    PIS. - PlugIn Send

    PIW. - PlugInWait