Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hosting TextBox Control (Read 4225 times)
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Hosting TextBox Control
Feb 21st, 2010 at 10:13am
Print Post  
Sir, I' trying to host a textbox control in the flowchartx.

I hosted the textbox of vb forms 2.0 with progID "Forms.TextBox.1", the axcontrol is perfectly added and the event wrapper is working fine.

but i got avery simple but annoying problem, the text editing cursor of the text box is invisible so the user will not be able to either select text of know exactly what is the cursor position in the string.

so, 1) How can i solve this problem?
or  2) How can i add the intrinsic textbox instead?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hosting TextBox Control
Reply #1 - Feb 22nd, 2010 at 11:55am
Print Post  
The cursor does not appear because the control doesn't have the keyboard focus. We have some code that automatically sets the focus when the hosted control is clicked, but it seems it doesn't work for windowless controls, and this "Forms.TextBox.1" is windowless. So for now you might try using a different textbox control that has a window; we'll see if we can implement focus support for windowless controls.

If by intrinsic textbox you mean the one used for inplace editing, you can show it by calling the box.BeginInplaceEdit method. If you mean the VB6 textbox control, you can place it on a form, either from the designer or dynamically through a control array, and then move it to a box like this:

b1.Style = bsWindow
b1.BindToControl Text1

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hosting TextBox Control
Reply #2 - Feb 22nd, 2010 at 12:01pm
Print Post  
re keyboard focus, you might check if that "Forms.TextBox.1" provides a Focus or SetFocus method and call it in response to the BoxSelected event.
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: Hosting TextBox Control
Reply #3 - Feb 22nd, 2010 at 1:22pm
Print Post  
Thank you, i will try what you have said.

But my question was how to add the VB textbox as a hosted AxControl, i mean what is the ProgID and does it work?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hosting TextBox Control
Reply #4 - Feb 22nd, 2010 at 2:05pm
Print Post  
According to our developer we added this BindToContol method and bsWindow style specifically for a client that needed to host VB6 controls a few years ago. We did not manage to find any ProgIDs for the intrinsic VB6 controls back then and believe they are not ActiveX controls...

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint