Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Windows 7 Forum Vista Tutorials Tags

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Selectable non-edittable text?

 
 
LinkBack Thread Tools Display Modes
Old 01-10-2006   #1 (permalink)
RyanLeeSchneider
Guest


 
 

Selectable non-edittable text?


What control should I use to contain selectaable, copyable but read only text?

Basically I have a couple lines of databound text that I want the user to
be able to select and copy, but not edit, e.g.:

Username: Ryan
Member Of: Developers

I've tried <TextFlow> with <Section> and <TextBlock>, and can display it
properly but can't find a way to make the text selectable.

Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt if at
all possible.

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
Drew Marsh
Guest


 
 

Re: Selectable non-edittable text?

RyanLeeSchneider wrote:

> What control should I use to contain selectaable, copyable but read
> only text?
>
> Basically I have a couple lines of databound text that I want the
> user to be able to select and copy, but not edit, e.g.:
>
> Username: Ryan
> Member Of: Developers
> I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> it properly but can't find a way to make the text selectable.
>
> Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> if at all possible.


Did you try a TextBox with IsReadOnly="true"?

HTH,
Drew

___________________________________
Drew Marsh
Chief Software Architect
Mimeo.com, Inc. - http://www.mimeo.com
Weblog - http://blog.hackedbrain.com/


My System SpecsSystem Spec
Old 01-10-2006   #3 (permalink)
RyanLeeSchneider
Guest


 
 

Re: Selectable non-edittable text?


Sorry, I meant <TextBox> not <TextEdit>. Like I said, it can't render rich
text so it a far less than deal choice.

"Drew Marsh" wrote:

> RyanLeeSchneider wrote:
>
> > What control should I use to contain selectaable, copyable but read
> > only text?
> >
> > Basically I have a couple lines of databound text that I want the
> > user to be able to select and copy, but not edit, e.g.:
> >
> > Username: Ryan
> > Member Of: Developers
> > I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> > it properly but can't find a way to make the text selectable.
> >
> > Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> > if at all possible.

>
> Did you try a TextBox with IsReadOnly="true"?
>
> HTH,
> Drew
>
> ___________________________________
> Drew Marsh
> Chief Software Architect
> Mimeo.com, Inc. - http://www.mimeo.com
> Weblog - http://blog.hackedbrain.com/
>
>
>

My System SpecsSystem Spec
Old 01-11-2006   #4 (permalink)
Dennis Cheng [MSFT]
Guest


 
 

Re: Selectable non-edittable text?

Have you tried RichTextBox?


"RyanLeeSchneider" <RyanLeeSchneider@discussions.microsoft.com> wrote in
message news:65880132-C37B-4B41-9683-80A92AAB4561@microsoft.com...
>
> Sorry, I meant <TextBox> not <TextEdit>. Like I said, it can't render
> rich
> text so it a far less than deal choice.
>
> "Drew Marsh" wrote:
>
>> RyanLeeSchneider wrote:
>>
>> > What control should I use to contain selectaable, copyable but read
>> > only text?
>> >
>> > Basically I have a couple lines of databound text that I want the
>> > user to be able to select and copy, but not edit, e.g.:
>> >
>> > Username: Ryan
>> > Member Of: Developers
>> > I've tried <TextFlow> with <Section> and <TextBlock>, and can display
>> > it properly but can't find a way to make the text selectable.
>> >
>> > Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
>> > if at all possible.

>>
>> Did you try a TextBox with IsReadOnly="true"?
>>
>> HTH,
>> Drew
>>
>> ___________________________________
>> Drew Marsh
>> Chief Software Architect
>> Mimeo.com, Inc. - http://www.mimeo.com
>> Weblog - http://blog.hackedbrain.com/
>>
>>
>>



My System SpecsSystem Spec
Old 01-11-2006   #5 (permalink)
RyanLeeSchneider
Guest


 
 

Re: Selectable non-edittable text?


No, but that's exactly what I was looking for, can't believe I missed that.

Thanks,

Ryan

"Dennis Cheng [MSFT]" wrote:

> Have you tried RichTextBox?
>
>
> "RyanLeeSchneider" <RyanLeeSchneider@discussions.microsoft.com> wrote in
> message news:65880132-C37B-4B41-9683-80A92AAB4561@microsoft.com...
> >
> > Sorry, I meant <TextBox> not <TextEdit>. Like I said, it can't render
> > rich
> > text so it a far less than deal choice.
> >
> > "Drew Marsh" wrote:
> >
> >> RyanLeeSchneider wrote:
> >>
> >> > What control should I use to contain selectaable, copyable but read
> >> > only text?
> >> >
> >> > Basically I have a couple lines of databound text that I want the
> >> > user to be able to select and copy, but not edit, e.g.:
> >> >
> >> > Username: Ryan
> >> > Member Of: Developers
> >> > I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> >> > it properly but can't find a way to make the text selectable.
> >> >
> >> > Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> >> > if at all possible.
> >>
> >> Did you try a TextBox with IsReadOnly="true"?
> >>
> >> HTH,
> >> Drew
> >>
> >> ___________________________________
> >> Drew Marsh
> >> Chief Software Architect
> >> Mimeo.com, Inc. - http://www.mimeo.com
> >> Weblog - http://blog.hackedbrain.com/
> >>
> >>
> >>

>
>
>

My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
MVP's, text to speech!!, Can I dictate in other text input program andy t Vista General 0 07-15-2008 02:58 PM
missing the language in the selectable list stopwatch Vista General 1 06-27-2008 08:29 AM
selectable language is missing in the list stopwatch Vista General 0 06-19-2008 09:58 AM
Dreamscene not selectable anymore Marco Vista General 5 06-17-2008 01:57 PM
How do I read a text file and sort text by fixed positions? Cornelius PowerShell 5 07-20-2007 06:34 PM


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53