define the Graphics Display Kit object selector
group GDobj_sel_view_templ
{
int list_update;
GDobject_templ *picked_obj;
};
group GDobj_sel_notify_templ
{
GDobj_sel_view_templ+IPort2 _&view {
int+OPort2 _sdims;
string+OPort2 _curobj_name;
method+notify_inst+notify_val upd_func = "GDobj_sel_update";
method+notify_deinst del_func = "GDobj_sel_delete";
};
GDobj_sel_notify_templ _GDobj_sel_templ
{
string+OPort2 _strings[sdims];
GDobject_templ+OPort2+nonotify _&cur_obj;
};
GDobj_sel_templ _GDobj_sel {
ptr+nonotify _local_ptr;
sdims = 0;
curobj_name = "";
int+write obj_list_changed = 0;
};
These templates define the Graphics Display Kit object selector.
GDobj_sel_view_templ defines a template that allows a view to be connected to the object selector. It restricts activations caused by a view to the following cases:
The object's name changes. This is the name that is displayed in the object selector.
The picked object in the view changes.
GDobj_sel_notify_templ defines the elements that cause the object selector's update method to execute. GDobj_sel_templ adds some additional elements to the initial template. GDobj_sel is the version you instance.
As an alternative to using GDobj_sel and having to define your own user interface for the editor, you can use ObjectSelector, an application component. ObjectSelector contains GDobj_selt and defines a user interface.
Libraries.Graphics_Display.Editors.UI_Editors.ObjectSelector