selRTF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ike

    #1

    selRTF

    Can someone please tell me what the following means:

    ActiveForm.rtfT ext.SelRTF

    I've taken it from the following context:

    ActiveForm.rtfT ext.SelRTF = Clipboard.getTe xt

    So it seems I am assigning the clipbard context to something that is on an
    active child form - but what in the world then is rtfText.SelRTF. I dont
    have an rtfText object anywhere (that I can see) and am trying to figure out
    what that is. And what is SelRTF ? How can I rewrite this expression,
    ActiveForm.rtfT ext.SelRTF, to be for plain text, rather than RTF text?
    Thanks, Ike


  • mayayana

    #2
    Re: selRTF

    This is some kind of homework assignment?
    Do you know about RichTextBox. Your rtfText
    is a RichTextBox. You must have an RTB somewhere,
    on one of your forms.
    An RTB has the properties Text for the visible text
    and TextRTF for the RichText encoding that the RTB
    is holding. It also has SelText and SelRTF, to access
    the selected versions. Your code replaces the selection.
    If there's no selection it inserts the new text at the caret
    offset (SelStart). You might find it helpful to look up
    all of the RTB properties starting with "Sel". There are
    a bunch of them.

    --
    _______________ ______________

    mayayXXana1a@mi ndYYspring.com
    For return email remove XX and YY.
    _______________ ______________
    Ike <rxv@hotmail.co m> wrote in message
    news:7t0je.3404 $Lc1.458@newsre ad3.news.pas.ea rthlink.net...[color=blue]
    > Can someone please tell me what the following means:
    >
    > ActiveForm.rtfT ext.SelRTF
    >
    > I've taken it from the following context:
    >
    > ActiveForm.rtfT ext.SelRTF = Clipboard.getTe xt
    >
    > So it seems I am assigning the clipbard context to something that is on an
    > active child form - but what in the world then is rtfText.SelRTF. I dont
    > have an rtfText object anywhere (that I can see) and am trying to figure[/color]
    out[color=blue]
    > what that is. And what is SelRTF ? How can I rewrite this expression,
    > ActiveForm.rtfT ext.SelRTF, to be for plain text, rather than RTF text?
    > Thanks, Ike
    >
    >[/color]


    Comment

    Working...