07-03-2006 10:36 AM
I know that everything of the above is in general possible in CVI but it means mostly to re-invent the UIR editor integrated into the IDE, which is a project fro a couple of months.
Is there another solution to allow the user to edit UIR, TUI or whatever without having the CVI IDE?
Any help is very much appreciated.
07-04-2006 01:35 AM - edited 07-04-2006 01:35 AM
Well, said that LoadPanel permits you to load TUI files, it's true what you say about reinventing the UIR editor, even if treating TUI text files; moreover, the amount of parameters annexed to a control is very huge, so the work involved can really be relevant..
I can suggest you take a look at movectrl.fp instrument driver, that can at least save you a lot of work since it permits to make controls moveable / sizable. You will need to add function for creating the control and saving its attribute, but the same fp has two useful functions to Save- and LoadMovableCtrlSettings that again can help you a lot. The file is located in toolslib\custctrl folder, and a useful example of how to use it can be found in samples\userint\custctrl.
This instrument driver (like almost all others shipped with CVI) is distributed in source format too, so in case you need a special function or want to take some idea for a particular job you are free study and in case modify it.
Message Edited by Roberto Bozzolo on 07-04-2006 08:37 AM
07-04-2006 03:01 AM
07-04-2006 03:38 AM
Programmatically working with multiple controls is easier with the use of multiple controls and control lists functions (SetAttributeForCtrls, SetCtrlsToAttributeExtreme and so on), but I'm sure you have already examined them, and indeed they imply a hard work in making those functions available to the user.
I was not aware of the independent UIR editor of DOS version of CVI since I never used it. A new item in the cvi wish-list
I personally would add the ability to manipulate common attributes on several controls in the built-in UIR editor: now we can only set position and dimensions for more than one control at a time...
02-03-2007 10:16 PM