Xbasic
RTF.CENTER_JUSTIFY Function
Syntax
.CENTER_JUSTIFY()
Description
The .CENTER_JUSTIFY() method center justifies RTF text.
Example
dim crtf.object as P dim crtf.text as C crtf.object = rtf.create(" ") crtf.object.insert("RTF Text", 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 %code%)
Limitations
Desktop applications only.
See Also