- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hello again,
I knew that it would be difficult when I started this project, but I like to think that nothing is impossible. I already have a working knowledge of how to dynamically format text, thanks to a tutorial that provided an 'envelope' for formatted text. I'm able to have a button called bold, and a textbox where the user enters the start/stop indexes. I have that test form working, I just want to be able to get the indexes from the highlighted text.
I think that I have a workable idea. I'm going to be trying this today, and I'll let you all know how it goes. I've read up on the 'Change' event properties... I think that if I can just find a way to programatically overwrite the selection on the exit event, that will trigger the on change event... then in the change event, check to se if the 'changed' property contains the value that was used on exit. If it was, restore the prevtext, then capture the selstart/selend to be used in formatting.
The only issue with this that I can see is how to programatically overwrite the selection on exit to trigger the change event.
I'll be playing with this until I get it, or until I finally admit defeat. I would appreciate any help or thoughts that anyone may have to offer. If I manage to get this working, I'll provide a custom control containing the rich text field and the formatting controls.
And yes, I know about the formatting controls that are inherant within acrobat, but my users want more that what has been provided... and they don't like that the toolbar can 'disappear' on them. Having it on the form, just above the text field would make them happy.
Thanks again to everyone who has been replying.
- Scott
Views
Replies
Total Likes