 | CPROJiGetCommandEnvironment Method |
The current command environment
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iGetCommandEnvironment()
public static int iGetCommandEnvironment()
Public Shared Function iGetCommandEnvironment As Integer
Public Shared Function iGetCommandEnvironment As Integer
public:
static int iGetCommandEnvironment()
public:
static int iGetCommandEnvironment()
static member iGetCommandEnvironment : unit -> int
static member iGetCommandEnvironment : unit -> int
Return Value
Type:
Int32
<define>COMMAND_ENV</define>
Notes
We are moving towards embedded tools and menus and this setting can be
queried from the project to determine how specific commands should react.
Only 3D viewer is currently making use of this.
If new Command environment enum values are added, then update the iGetCommandEnvironment_PROJ() function
in geogxgui\gxx_app.cpp and in the COMMAND_ENVIRONMENT enums in geoengine.core\include\obj\objgp.h.
See Also