Re: Implementation Report
- From: Ron Benditt <rbenditt@xxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Fri, 14 Mar 2008 16:45:39 -0400
On Mar 14, 2008, at 4:12 PM, Brendan Murphy wrote:
Ron Benditt wrote:
readonly edit fields allow text to be selected (highlighted in gray
instead of the normal blue), even if acceptfocus is set to false
This is by design. Consider Apple's Mail program where the email
that is displayed in the main pane is read only, but it allows you
to select the text. Now I could add a property to toggle allowing
selections so that you can't select any text if desired.
A property like that would be great. I have one FTC that serves as an
editor, but then I have a few others that are for display only so I
don't want the user to be able to select anything.
Resizing edit fields does not re-center text that was centered.
Page widths also need to be adjusted to make it work. My
understanding is that page widths are not important when using the
control as a normal edit field, but only when you have page mode
active.
There are three modes including page, normal, and edit. Page and
normal modes are virtually the same except in normal mode no
background or page breaks are used. So normal mode will act just
like the page mode when it comes to centering the content.
Ah, thanks for clearing that up. I've been wondering what "normal"
mode was supposed to be. I've been using normal mode but it sounds
like I should probably be using edit mode.
textchanged event does not fire when text is put in the FTC via
code. This event does fire in the normal edit field.
If you are programatically adding content, you are responsible for
calling the TextChanged event. Call the callTextChanged method
after you are all done adding the content.
Fair enough. That's what I ended up doing.
Request: Make the insertion point color a property that can be
accessed and set. In a program where I am using the FTC, I
typically have black backgrounds with white text. A black
insertion point does not do well in this instance! While I have
altered your code to make the insertion point draw white, I'll have
to make this aleration on any updates that you come out with. An
accessible property would make my life easier.
That is easy. I'll put it in the next preview.
Thanks!
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
- References:
- [FTC b15pv11] DrawBackground
- From: Bob Keeney
- Re: [FTC b15pv11] DrawBackground
- From: Brendan Murphy
- Implementation Report
- From: Ron Benditt
- Re: Implementation Report
- From: Brendan Murphy
Other related posts:
- » Implementation Report
- » Re: Implementation Report
- » Re: Implementation Report
Ron Benditt wrote:
readonly edit fields allow text to be selected (highlighted in gray instead of the normal blue), even if acceptfocus is set to false
This is by design. Consider Apple's Mail program where the email that is displayed in the main pane is read only, but it allows you to select the text. Now I could add a property to toggle allowing selections so that you can't select any text if desired.
Resizing edit fields does not re-center text that was centered. Page widths also need to be adjusted to make it work. My understanding is that page widths are not important when using the control as a normal edit field, but only when you have page mode active.
There are three modes including page, normal, and edit. Page and normal modes are virtually the same except in normal mode no background or page breaks are used. So normal mode will act just like the page mode when it comes to centering the content.
textchanged event does not fire when text is put in the FTC via code. This event does fire in the normal edit field.
If you are programatically adding content, you are responsible for calling the TextChanged event. Call the callTextChanged method after you are all done adding the content.
Request: Make the insertion point color a property that can be accessed and set. In a program where I am using the FTC, I typically have black backgrounds with white text. A black insertion point does not do well in this instance! While I have altered your code to make the insertion point draw white, I'll have to make this aleration on any updates that you come out with. An accessible property would make my life easier.
That is easy. I'll put it in the next preview.
- [FTC b15pv11] DrawBackground
- From: Bob Keeney
- Re: [FTC b15pv11] DrawBackground
- From: Brendan Murphy
- Implementation Report
- From: Ron Benditt
- Re: Implementation Report
- From: Brendan Murphy