How to set TMemoView Frame Types in script
How does one set a Memo's
Memo->Frame->Typ = [ftBottom,ftTop,ftRight,ftLeft]
using code?
Also how do you set the Memo->Font->Style << fsBold , Bold, Underline style settings using code?
Any help most appreciated
Memo->Frame->Typ = [ftBottom,ftTop,ftRight,ftLeft]
using code?
Also how do you set the Memo->Font->Style << fsBold , Bold, Underline style settings using code?
Any help most appreciated
Comments
i use Basic-Script:
In Pascal
Greetz
I tried the equivalent in C++
Memo->Frame->Typ = ftTop + ftBottom + ftLeft + ftRight;
but it would not compile with error message
[bcc32 Error] OSSMainFRReport.cpp(1264): E2034 Cannot convert 'int' to 'TfrxFrameTypes'
and the same for the Style Setting
Memo->Font->Style = fsBold;
gave the following compile error
[bcc32 Error] OSSMainFRReport.cpp(1212): E2034 Cannot convert 'TFontStyle' to 'TFontStyles'
I would have thought the same method would work in Pascal as C++.
This works for C++
Memo->Font->Style = TFontStyles();
Memo->Font->Style = Font->Style << fsBold;
But I still can't get the Frame Types to work in C++
Any help would be appreciated.