»»»Home «««
»»»TELL «««
»»»Toped «««
»»»Ifaces «««
|
Table of Contents This chapter describes some functions that could be convenient during the interactive editor sessions. Set a various Toped session parameters. This function give the user an opportunity to change a wide variety of Toped features. Here only the general function syntax is described. The features altered are described separately troughout the documentation.
The second function gives the opportunity to set a number of parameters with a single function call. Prints the list of the used layers. Depending on the input parameters, the function reports used layers only in a certain cell, or layers used in that cells and in all cells referenced in it.
The second function reports the layers used in the current cell. Returns the string contents of a text object. If the input is a non-text object the function flags a runtime error.
The object type can be obtained using getlaytype function. Example 3. getlaytext layout list objects = select(); if (length(objects) > 0) { if (_lmtext == getlaytype(objects[0])) { string name = getlaytext(objects[0]); //... more code } //... more code } Returns the name of the referenced cell. If the input is not a reference object the function flags a runtime error.
The object type can be obtained using getlaytype function. Example 4. getlayref layout list objects = select(); if (length(objects) > 0) { if (_lmref == getlaytype(objects[0])) { string cellname = getlayref(objects[0]); //.... more code } //.... more code } Returns the type of the layout object. Toped defines a list of integer constants with the layout types (see constants).
See the examples in getlayref , getlaytext. |