Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Questions about MS RTF control
Message
De
01/11/2001 09:50:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/10/2001 15:40:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00575849
Message ID:
00576117
Vues:
42
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform