Xbasic

RTF.FULL_JUSTIFY Function

Syntax

.FULL_JUSTIFY()

Description

The .FULL_JUSTIFY() method full justifies all lines but the last line of a paragraph of RTF text.

Example 

dim crtf.object as P
dim crtf.text as C
crtf.object = rtf.create(" ")
crtf.object.insert("RTF Text to stretch over one line, so you can see what full justify does", 1)
crtf.text = crtf.object.rtf_text
ui_dlg_box("Xdialog Sample", <<%dlg%
{rtf=30,10crtf};
{lf};
;
;
;
%dlg%,<<%code%
if a_dlg_button="Left_Justify" then
    crtf.object.left_justify()
    a_dlg_button = ""
end if
if a_dlg_button="Center_Justify" then
    crtf.object.center_justify()
    a_dlg_button = ""
end if
if a_dlg_button="Right_Justify" then
    crtf.object.right_justify()
    a_dlg_button = ""
end if
if a_dlg_button="Full_Justify" then
    crtf.object.full_justify()
    a_dlg_button = ""
end if
%code%)

Limitations

Desktop applications only.

See Also