RTF2 Bug?

P

Peter-d

Hi folks

I've been using Stephan Leban's Calendar and RTF control with great
satisfaction.
But just recently discovered what seems to be a bug...

I have a form with a tab control, in on of the pages there is a subform
containing the RTF2 control.
If, after seting the focus to RTF2 control, I set it to any control outside
the subform (a plain text box for example -- and and the focus appears to be
set since I can see the cursor in it) if I hit ctrl-v to paste some text from
the clipboard, the text will be pasted in the RTF2 control instead of the
currenttly active control. Note that the focus doesn't change and if the
control in question is on another page of the tab control.

If before changing to a control on the parent form, I set the focus to a a
control within the subform, then set it to a control in the parent form, this
won't happen. Also, if I use the toolbar to paste of teh context menu, this
doesn't happen. It appears to be the trapping of the keyboard event is not
released when I click outside the form.

Any thoughts on what might cause this? Any suggestion for a workaround?

I have a sample database when this is illustrated if anyone is interedted.

While I'm here, any programatic solution to the RTF control ditching the
first keyboard input?

Thanks


Thanks
 
S

Stephen Lebans

Peter I really do not appreciate your Subject title as it is insinuating
there is a bug in my control.

The two issues you mention, that of focus and keyboard strokes, have to
do with the Access Host container for ActiveX controls and nothing
directly to do with my code.

There have always been issues with any Activex controls embedded within
a TAB control especially when there is a further Subform control
involved. I do not know of a simple solution to your issue off the top
of my head. It would take some time to try to work through all of the
"focus" issue.

As for the first keystroke dissappearing perhaps you might search on the
FMS site for a solution. SInce both my and the FMS control create the
RTF control directly from the Common Controls library any solution for
their control should work with mine as well.

Good luck.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
P

Peter-d

Stephen
Sorry about the title, this is my first experiance in working with ActiveX
control so I had never encoutnered Access host issues.
It was definately not meant to put your control or your excellent code down.

But thanks for the feedback. I will try to be more sensitive in my choice of
words for future Subject titles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top