Use cWebView.pkg Use cWebPanel.pkg Use cWebForm.pkg Use csfWebRichTextEditor.pkg Use cWebCombo.pkg Use cWebButton.pkg Use cWebDragDropFileHelper.pkg Object oRichTextEditorDemo is a cWebView //Set piWidth to 700 Set psCaption to "Rich Text Editor Demo" // Your DDO structure will go here Object oWebMainPanel is a cWebPanel Set piColumnCount to 12 Object oRichTextEditor is a csfWebRichTextEditor Set piHeight to 400 Set piColumnSpan to 12 Set pbServerOnTextChange to True //Set psImageSaveUrl to "" Procedure OnChange Boolean bIsInteracted Integer iCount WebGet piCharCount to iCount Send none End_Procedure End_Object Object oSetDataButton is a cWebButton Set piColumnSpan to 2 Set psCaption to "Set Content" Procedure OnClick String sValue Move '
This is a small example of what can be done with this Rich Text Editor
' to sValue #IF (!@ > 191) Append sValue @'' #ENDIF Append sValue "
It doesn't show much yet.
" WebSet psValue of oRichTextEditor to sValue Send none End_Procedure End_Object Object oWebDragDropFileHelper is a cWebDragDropFileHelper // Register drop targets Send RegisterDropTarget oRichTextEditor C_WebDropOnControl // Called for each file dropped, should return the local path to write the file Function OnFileDrop String sFileName Integer iBytes String sMime Handle hoDropTarget WebDropPosition eDropPosition Returns String String sPath tWebTreeViewDropData tDropData Boolean bExists #IFDEF Is$WebApp Get UploadFolder of ghoWebApp True to sPath #ELSE // not supported by FlexTron it seems Get UploadFolder of ghoWebResourceManager True to sPath #ENDIF If (sPath<>"") Begin Move (sPath + "\" + sFileName) to sPath // Check if we are not overwriting an existing file File_Exist sPath bExists If (bExists) Begin Send UserError "File already exists!" Function_Return "" End End Function_Return sPath End_Function Procedure OnFileFinished String sFileName String sLocalPath End_Procedure End_Object Object oGetDataButton is a cWebButton Set piColumnSpan to 2 Set psCaption to "Get Content" Set piColumnIndex to 2 Procedure OnClick String sValue WebGet psValue of oRichTextEditor to sValue Send none End_Procedure End_Object Object oInsertTextButton is a cWebButton Set piColumnSpan to 2 Set psCaption to "Insert Text" Set piColumnIndex to 4 Procedure OnClick Send InsertText of oRichTextEditor "Rich Text Editor" End_Procedure End_Object Object oInsertHtmlButton is a cWebButton Set piColumnSpan to 2 Set psCaption to "Insert Html" Set piColumnIndex to 6 Procedure OnClick String sHtml Move """Dear Guest,
We're thrilled to extend a special invitation to you for an exclusive Microsoft webinar meet-up, where we'll explore the latest innovations and insights driving the future of technology. As a valued member of our community, we believe this event will offer invaluable knowledge and networking opportunities.
Time: | 10:00 AM - 12:00 PM |
---|---|
Duration: | 2 hours |
Platform: | Microsoft Teams |
Feel free to invite your colleagues and peers who might benefit from this enriching experience. Simply forward this email to them or share the event details.
We're looking forward to your participation and to exploring the exciting world of Microsoft technology together. Should you have any questions or require further information, please don't hesitate to contact us at webinar@company.com.
Warm regards,
John Doe
Event Coordinator
ABC Company