Versions Compared

Key

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

...

JIRA

SUMMARY

DESCRIPTION

DETAILS

ORG-27728

Provide OC function to print Note window

Improve PageBase::Print function to support print note window

For example:

1.Make sure a third party PDF application(like Adobe Reader) is installed, and set it as default app for pdf file.

2.Compile following oc code in Code Builder, and run NotesPage_Print_ex1.

Code Block
void NotesPage_Print_ex1()
{
	PageBase pg = Project.ActivePageBase();
    if( pg )
    {
        Tree tree;
        tree.Pdf.FileName.strVal = "C:\\test.pdf";
        //0: print to pdf then print to the default printer
        //1: print to pdf only
        tree.Pdf.PrintMode.nVal = 1;
        BOOL bResult = pg.Print(tree);
    }
}

ORG-27885

Color Conversion Functions

Added following oc functions.

Code Block
void RGBtoLCH(COLORREF cr, double* L, double* C, double* H);
COLORREF LCHtoRGB(double L, double C, double H);
void RGBtoLAB(COLORREF cr, double* L, double* a, double* b);
COLORREF LABtoRGB(double L, double a, double b);
void RGBtoHSV(COLORREF cr, double* h, double* s, double* v);
COLORREF HSVtoRGB(double h, double s, double v);

Example:

Code Block
void RGB_LCH_convert(int rr=255, int gg=125, int bb=50)
{
	int rgb = RGB(rr, gg, bb);
	double l, c, h;
	RGBtoLCH(rgb,&l, &c, &h);
	printf("result: %g, %g, %g\n", l, c, h);
	DWORD dw = LCHtoRGB(l, c, h);
	printf("%d %d %d\n", GetRValue(dw), GetGValue(dw), GetBValue(dw));
}

R/MATLAB

JIRA

SUMMARY

DESCRIPTION

DETAILS

ORG-27529

MATLAB and R Console support syntax coloring

Support syntax coloring for MATLAB and R Console.

ORG-27375

Change more dialog to be Scintilla based

To make the dialog work better in dark mode, need to change more dialog using Edit Control to be Scintilla based.

Changed following dialog to be Scintilla based.

  1. Script Panel for Workbook, Matrixbook, Graph…

  2. X-Function Script Samples dialog

  3. R (Server) Console

  4. Matlab Console

  5. Import Wizard Data Preview and Variable Extraction Preview panel

...