rtLib — Notes Rich Text Management Library Documentation of rtLib — Notes Rich Text Management Library Download rtLib — Notes Rich Text Management Library FAQ of rtLib — Notes Rich Text Management Library Purchase rtLib — Notes Rich Text Management Library Feedback about rtLib — Notes Rich Text Management Library

Handling of Rich Text objects

Popups and computed text

Start search Mail feedback Back to Description

Popups and computed text both use rtPopup class.

Popups:

ctx.getRichTextItem docData, ITEM_DATA


' ### Formula popup
Set popupComp= New rtPopup(HOTSPOTREC_RUNFLAG_FORMULA) ' uses formula
popupComp.Formula ={_a:="} &ses.commonuserName &{";"You are. " +_a + " - nicht wahr?"} ' {"NO TEXT"}
set popupComp.Content = New rtContainer

popupComp.Content.appendText "Formula popup"
ctx
.add popupComp

' ### Text popup
Set popupText= New rtPopup(0) ' uses Text
popupText.Text = "Text popup popup text!"
set popupText.Content = New rtContainer

popupText.Content.appendText "Text popup"
ctx
.add popupText

ctx.ReplaceItemValue docData, ITEM_OUT_DATA

Computed text:
ctx.getRichTextItem docData, ITEM_DATA

'### Computed Text (take a formula popup and create with HOTSPOTREC_RUNFLAG_COMPUTED)

Set compText = New rtPopup(HOTSPOTREC_RUNFLAG_COMPUTED Or_

HOTSPOTREC_RUNFLAG_FORMULA Or HOTSPOTREC_RUNFLAG_NOBORDER)

compText.Formula={_a:="} &ses.commonuserName &{"You are " +_a + " - nicht wahr?"}

ctx.add compText
ctx
.ReplaceItemValue docData, ITEM_OUT_DATA

See cookbook for other code examples.