Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Add FORMS at run time Collapse All
Subject Author Date
Jayender S Jan 6, 2006 - 10:41 PM

How to add dialog forms at run time  in the sample u provided. (http://www.prof-uis.com/Forum_View.aspx?CID=29&M=4606  ) . say like i need to add a text box or a date time picker at run time and i need to pick that value or assign values to that text box through scripting. how to do it in Prof UIS ?


thanks,    jayender.

Technical Support Jan 7, 2006 - 6:51 AM

You need to code an OLE control container window and COM object with all the required methods to make it possible to add controls to the container (or simply a form). It is a bit difficult and does not relate to Prof-UIS directly. Please take a look at existing projects like this. But we think you have no reason to code such a component. VBA (Visual Basic for Applications) does support both forms and Visual Basic language. The latter is better than VB Script and includes a debugger. Besides VBA is used in Microsoft Office and many other applications.

Jayender S Jan 7, 2006 - 9:22 PM

Well .. thats fine .. say if  i need to add a VB form... in my VC++ how should i do it with the help of Prof UIS ? say like i need to add controls like Date time picker or text box in the form at run time and assign the values to that text box through scripting.. how can i do it ? it will be fine if u can provide me the sample done in ur previous sample u haved attached (dont know how to attach so this the topic of that thread ->Passing values through ActiveX scripting(VB) in VC++  where u have attached the sample). In simple i need to add a  form at run time and add some controls in it  and pass the values to the controls through scripting. waiting for ur reply .