[ Home ] [ Features ] [ Products ] [ FAQ's ] [ Screens ] [ Support ] [ Downloads ] [ About ] [ Discussion ]


the software that grows with you

 

V32Edit()

Windows memoedit replacement for Clipper.

Syntax

V32Edit( [ cText ], [ lWrap ], [ cTitle ], [ cFont ], [ nFontSize ] )

Arguments

[ cText ] text to be edited. Default is empty string.

[ lWrap ] logical to determine whether editing window opens in word wrap mode or in draft mode. Default is TRUE means word-wrap is on.

[ cTitle ] character string to be displayed in the title bar of the edit widow. Default is 'Edit Memo'

[ cFont ] Windows font to be used for editing text. Default is 'Courier'.

[ nFontSize ] numeric size for cFont. Default is 12.

Returns

Array of two elements { cText, nModeSave }
   cText : The edited text 
   nModeSave : Numeric value representing one of the following:
      0 . Set to Save
      1 . Set to Delete
      2 . Operation Cancelled

Description

A Windows replacement for the MemoEdit() function of Clipper. Editing dialog opens in application modal state and has the features of cut, copy and paste. User is presented Save and Delete and Cancel options. Right click opens a context menu to perform select, cut, copy & paste operations.

The window is resizable and all the controls are moved accordingly.

Usage

local cText := SomeText()

// Open the edit window in document mode
aResult_ := V32Edit( cText, .f. )

cText := aResult_[ 1 ]

if aResult_[ 2 ] == 0
   SaveMemo( cText )
elseif aResult_[ 2 ] == 1
   DeleteMemo( cText )
endif

Tips

Routines using MemoEdit() can be made use of it.
 

[ Home ][ Features ] [ Products ][ About Us ][ FAQ's ][ Screen Shots ][ Downloads ][ Support ][ Discussion ]
.

Vouch is a Trademark of Pritpal Bedi
All other Trade Marks are the property of their respective owners.
Copyright 1993-2011 Pritpal Bedi. All rights reserved.
Hit Counter  
You are Visitor # since 14 May 2002