An example procedure named
sel_obj.pro is included in the
examples/visual subdirectory of the IDL distribution. This file creates two views, places models within the views, and provides an interface to let you choose between selecting models or graphic atoms. A mouse click in one of the views will update a label that identifies the current selections.