Gets the selected range string
string get_interative_selection_range( DWORD dwOptions = 0, HWND hWndParent = NULL, LPCSTR lpcszDefaultText = NULL, LPCSTR lpcszTitle = NULL, DWORD dwFlyoutOptions = 0, InterRangeType nRangeType = InterRangeType_Range, TreeNode * ptrInput = NULL, int nNodeID = ONODETYPE_INVALID )
Return the selected range string
EX1
void get_interative_selection_range_ex1() { DWORD dwOptions = ICOPT_LABEL_AREA_ONLY; Window wnd = GetWindow(); string strRange = get_interative_selection_range(dwOptions, wnd.GetSafeHwnd(), "", "Select some label rows"); out_str(strRange); }
EX2
void get_interative_selection_range_ex2() { //set dwFlyoutOptions to 0 or INTERACTIVE_CONTROL_FLYOUT_OPTIONS_NO_DATA_SELECTOR to see the difference DWORD dwFlyoutOptions = 0; int nRangeType = InterRangeType_XYRange; Window wnd = GetWindow(); string strRange = get_interative_selection_range(0, wnd.GetSafeHwnd(), "[Graph1]1!1", "Select partial plot", dwFlyoutOptions, nRangeType); out_str(strRange); }
origin.h