>>I have studied the MS RTF control that ships with VFP 7 and have the following questions that I have been unable to answer.
>>
>>Any help or insight appreciated including experience with and/or recommendations for alternative RTF/HTML or edit box (text) ActiveX controls.
>>
>>Thanks!
>>Malcolm
>>
>>1. Is there a way to make an RTF control transparent?
>>
>>2. Is there a way to set a wallpaper-like background for an RTF control?
>>
>>3. Is there a way to force an RTF control to word wrap its contents to fit its control boundries vs. use the page margins set in the original RTF content? Is there a way to turn off or remove page margin settings in an RTF file so that an RTF control will word wrap its contents?
>>
>>4. Is there a way to determine what text a mouse cursor is over when a mouse is moved over the contents of an RTF control?
>
>1. AFAIK no. It has its own window (Unless you use winAPI but that AFAIK supported by w2K and later)
>2. Might be. You could try watermarking a word doc and saving as RTF to get RTF codes.
>3. Set RightMargin to 0. thisform.OleRTF.RightMargin = 0
>4. Above me currently :) With and editbox below code might provide a nonsmart way :
>
LPARAMETERS nButton, nShift, nXCoord, nYCoord
>if abs(val(this.tag)-nYCoord)>Fontmetric(1) ;
> or abs( val(substr(this.tag,at(',',this.tag)+1))-nXCoord)> Fontmetric(6)
> mouse dblclick at nYCoord, nXCoord window (wontop())pixels
> this.tag = trans(nYCoord)+','+trans(nXCoord)
>endif
>
Cetin
BTW if you can find 'BrochureMachine' somewhere on MS site. They did almost what you want using C in HTML.
Cetin