How to Edit the Callback Box in Scilab

Scilab’s mathematical programming application allows a variety of JavaScript inserts into a model. One is a callback box. This is a box that, when a user clicks on it, will input a previously saved value (via a separate box). Whatever is sitting in the Scilab memory bank will be displayed in the callback box. Editing a callback box is simple; you can change only the position and color, though -- everything else is standard.

Instructions

    • 1

      Open your Scilab code.

    • 2

      Find the section that begins “function updatelistbox” and ends with “huilist.Callback = "updatelistbox";” It will be around 13 lines long.

    • 3

      Edit the values in the “h.Position” field to change where the box appears. It is controlled in pixels, marked from the center. As always, you can change the values and click away to preview the change.

    • 4

      Edit the value in “huilist.BackgroundColor” to change the color. You will need to use the six-digit HTML color code instead of the color name. If you can’t find it, look in Resources for a link to help.

    • 5

      Save the Scilab code when the callback box looks the way you want it to.

Related Searches:

References

Resources

Comments

Related Ads

Featured