This command shows basic use of the event control for tracking mouse events and accessing located features near the mouse position. It displays the key field name and value of the highlighted feature in the status bar. When the command is started an array of recordset/keyfield names is created. This serves as a lookup table so that when a feature is highlighted its keyfield name can be quickly retrieved from the array and its name/value can be displayed in the status bar. If there is a problem searching in the keyfield array then the first character or number field of the recordset associated with the highlighted feature is shown in the status bar.
Download and compile the source code. Register the command using .\bin\register.bat file. Open a GWS containing one or more legend entries and start the command. Hold the cursor over elements in the map view. The application status bar will display the name and value of the key field for that feature. Move the cursor over the mapview and the status bar will change.
Press ESC to end the command.
C# for GeoMedia 2015: HGDN_GEOMEDIA / Cmd_LocateFeature_2015CS or git command git fetch && git checkout Cmd_LocateFeature_2015CS
VB.NET for GeoMedia 2015: HGDN_GEOMEDIA / Cmd_LocateFeature_2015VB or git command git fetch && git checkout Cmd_LocateFeature_2015VB