Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
int vectorbase::SetSubVector(vectorbase& vbSource, int c1 = 0, int nCount = -1);
int vector<string>::SetSubVector(vectorbase& vbSource, int c1 = 0, int nCount = -1);

 

8. Improve LabTalk "type -gb" command for text file output (ORG-8306)

...

Add some basic Matlab commands (ORG-8358)

Code Block
type -gb[ef[r|n]]

e is for New file which will erase existing file.

f is for output to file only, instead of file and script window.

New line is \r\n by default, n = use \n as new line, r = use \r as new line.

 

9. Pop up menu within GetN dialog (ORG

...

-8466)

Create a new X-Function, and in tree view of X-Function Builder, set GetN Dialog Custom Buttons with "Popup Menu".

Image Added

Then, edit in Code Builder, include header file "control.h" (#include <control.h>), then in <xf-name>_event1 function, add the following code;

Code Block
if( nEventID == GETNE_ON_CUSTOM_BUTTON1 )
{
    Menu m;
    m.Create();
    m.Add("Item 1",1,MF_DISABLED);
    POINT pt;
    GetCursorPos(&pt);
    m.TrackPopupResMenu(0, pt.x, pt.y, GetWindow());
}

The result will be

Image Added

 

10. Add more Page and Layer classes LabTalk evaluation functions (ORG-8470)

Code Block
BOOL LT_evaluate(LPCSTR lpcszLabTalkExpression, double * lpdbResult);
BOOL LT_get_var(LPCSTR lpcszLabTalkVarName, double * lpdbResult);
BOOL LT_set_var(LPCSTR lpcszLabTalkVarName, double dbValue);
BOOL LT_get_str(LPCSTR lpcszLabTalkString, char* pBuffer, int nBufferSize);
BOOL LT_set_str(LPCSTR lpcszVar, LPCSTR lpcszContent);

 

Improve TreeNode display in Code Builder Variable window (ORG-8689)

...