|
GLG Toolkit, C# Class Library
Version 4.6
|
This group contains supporting methods for the drawing editing functionality. More...
This group contains supporting methods for the drawing editing functionality.
See Object Configuration methods of the Intermediate API and Editing Objects methods of the Extended API for more object editing functionality.
Functions | |
| static void | SetBrowserObject (GlgObject browser, GlgObject glg_object) |
| Sets the object for browsing with the GLG Resource, Tag and Alarm browser widgets. More... | |
| bool | SetBrowserSelection (String resource_name, String selection, String filter) |
| Sets a new value of a browser's Selection and Filter text boxes of the Resource, Tag, Alarm and Data browser widgets after the browser object has already been set up. More... | |
| static bool | SetEditMode (GlgObject viewport, String resource_name, bool edit_mode) |
| Sets the viewport's edit mode to disable input objects in the viewport while the drawing is being edited. More... | |
Sets the object for browsing with the GLG Resource, Tag and Alarm browser widgets.
| browser | A viewport of the Resource, Tag or Alarm browser widget. |
| glg_object | An object to browse. |
The browser widget will display the object's resources, tags or alarms depending on the type of the browser widget.
| bool SetBrowserSelection | ( | String | resource_name, |
| String | selection, | ||
| String | filter | ||
| ) |
Sets a new value of a browser's Selection and Filter text boxes of the Resource, Tag, Alarm and Data browser widgets after the browser object has already been set up.
The method is invoked on the browser widget's viewport, or its parent.
| resource_name | A resource path to access the browser widget's viewport from the parent, or null if the method is invoked on the browser widget's viewport. |
| selection | A new selection string. |
| filter | A new filter string. |
Setting a new selection will display a new list of matching entries. Before the browser's drawing hierarchy has been set up, the Selection and Filter fields of the browser widget may be set via the corresponding resources. To change Selection or Filter after hierarchy setup, this method should be used.
|
static |
Sets the viewport's edit mode to disable input objects in the viewport while the drawing is being edited.
| viewport | A viewport object (either a Viewport or a Light Viewport) to set the editing mode of, or its parent. |
| resource_name | A resource path to access the viewport from the parent supplied by the viewport parameter, or null to set the editing mode of the viewport specified by the viewport parameter. |
| edit_mode |
|
If the viewport's edit mode is turned on, input objects in the viewport will not react to the mouse and keyboard events. The rest of the input objects outside of the viewport will still be active. The edit mode is inherited by all child viewports.
The edit mode is usually set for viewports that serve as a drawing area; the edit mode ensures that the input objects do not react to mouse clicks when they are dragged with the mouse to a new position. This is similar to the behavior of the Graphics Builder's Drawing Area.
The edit mode is global and may be set only for one viewport used as a drawing area. Setting the edit mode of a new viewport resets the edit mode of the previous viewport. A viewport's edit mode is inherited by all its child viewports.