03-20-2012 03:18 AM
Dear All,
seems that an "old friend" came back:
I'm working with CVI 2010, using a RICHTX32.ocx active control in my UIR. Works fine on my own PC (were CVI workbench is installed). After deploying that application via an install kit, a call of the .exe forces an "Error in call to RTFPanel", ErrorCode -143, ActiveX contol error.
Yes, the RICHTX32.ocx is part of the install kit. Yes, the ActiveX object is registered in the target system ... and: yes, it's the same version. No, the ActiveX control runs in the main task and not in a different threat. I stift true the whole Message boards. Found 40 topics. Tried to understand all proposal and test them. Beeing peeved if topics sudden stop before a solution was posted. I start to regret that I want to have a text control with colored text. Asking me why NI didn't support such a control. I realize that e.g. Qt is lightyears ahead NI ... and I'm wondering if it could be a solution to change horses.
03-26-2012 04:03 PM
CVI does support text control with colored text. The attribute ATTR_TEXT_COLOR can be used to change the color of a control's text. You do have to disable "Conform to System Colors" property of the panel in order to change the text color. If this is not the functionality you are looking for, could you be more specific?
03-27-2012 03:00 AM
Thanks for your efforts. One of the benefits of a RTF Textbox is, that text could be colored character-by-character. So it is possible to color an timestamp e.g. green and the following text (send and receive strings blue or red). All in one line. That helps in a running communication to keep strings apart. A CVI textbox could also be colored. Unfortunately only the whole text will take one color. It is not possible to mix colors in one line. So the CVI textbox isn't an alternative methode to subsitute a RTF textbox.
Meanwhile I opened a tech call and received some encouraging results: It seems that on different PCs various RICHTX32.ocx (or none) are present. CVI uses a old version of RICHTX32.ocx which was never updated. Two things should be done to improve usage of a RTF text box: First use a RICHTX32.ocx dated 2008 6.0 (SP6) or later (search on your PC of on the PCs of your colleages). Copy it to your project dir. Second: Create an ActiveX Controler (with the CVI Wizard Tool). Create and use the .fp file. If all works fine in your project, add the .ocx file to your Installer fileset. Right mouse click on the added .ocx file and choose "... Options" (Enter), and say "YES" in field "Register as ActiveX Server".
After that: start praying. I'm not sure which has more influence - but - finally it works on 3 PCs (2x Windows7 and one Windows XP Prof. SP3).
It tooks me 3 days and a lot of sweat and NI phone calls. Thanks to the involved support.
08-14-2012 03:16 AM
Problems with RTF Textbox arise again (think I'm saying some profanities...). It's like playing lottery: On approx. 85% of XP Prof. or W7 installations program works fine. On the rest, even if is a new installed PC, it didn't work. Error Code -143 ActiveX control error occurs.I'm devastated. No chance to cure it.
Some ideas?