5 Replies Latest reply on May 24, 2017 12:30 PM by tom.larsen@epfl.ch

    User of centering in LCell_MakeLogo function

    tom.larsen@epfl.ch

      Hello Everyone

       

      Probably a very basic question. However, I have some problems making the centering of text work when using the LCell_MakeLogo function in a T-Cell

      The L-Edit manual says the following.

       

      LCell_MakeLogo

      LStatus LCell_MakeLogo( LCell pCell, const char* szLogoString, LCoord nTextSize, LLayer pLayer, LBoolean bPrintDate, LBoolean bPrintMaskCopyright, LBoolean bUnderline, LCoord CenterPointX, LCoord CenterPointY, LBoolean bPrintCompanyLogo, LBoolean bSnapToGrid, LBoolean bCreateAsInstance, const char* cszLogoLibrary, const char* cszLogoCell, const char* cszLogoView, const char* cszCharacterSetFileName );

       

      Parameters

      pCell Cell containing the port.

      szLogoString String to generate as characters. The following special characters are

      allowed:

      &c - Center Justify

      &l - Left justify

      &r - right justify

      &d - Current date

      &t - Company logo

      &m - mask copyright

      \n - newline

       

      My function without centering looks like:

       

      LCell_MakeLogo(cellCurrent, Label, 40000, SourceDrain, LFALSE, LFALSE, LFALSE, 0, -25000, LFALSE, LFALSE, LFALSE, NULL, NULL, NULL, NULL);

       

      where Label is a string.

       

      How would the function look like when the centering &c is implemented?

       

      Best regards

      Tom