Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy & paste RTF text
Message
 
 
À
03/02/2007 19:09:22
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01192162
Message ID:
01192252
Vues:
9
Hi Alan,

It's easy to make RTF control read only. I'm not sure how to acomplish the copy part, though.
WITH Thisform.oRtf.OBJECT
  .SelStart = 0
  .SelLength = LEN(.TextRTF)
  .SelProtected = .T.
  ...
ENDWITH
>I have a RTF olecontrol (richtext.richtextctrl.1) bound to a memo field and which is disabled when the form is in view (ie. non-edit) mode. Users have requested to be able to copy+paste data from one memo field to another, without having to place the form in edit mode first (hence setting olecontrol.enabled =.T.). At present the user cannot enter the RTF control when it is disabled.
>
>What I am trying to create is the equivalent of a readonly property for the RTF control, much like a textbox or edit region, where even if the control is readonly the user can still copy text to the clipboard using the mouse and and Ctrl-C (or right-click menu), but cannot edit the data.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform