NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I resize IDD_TESTEXEC_DIALOG in .net for C++

I'm using the included full-featured user interface which is packaged with TestStand version 4. The resource TestExec.rc has dialogs which are somehow being resized and placed by the code. The problem is that it is very difficult to figure out where the code is resizing what. Is there a way to disable this? In CVI I was able to resize the canvas, however, nothing I try in Visual C++ appears to work. If I cannot disable the code resizing and replacing everything, where can I specify the size for IDD_TESTEXEC_DIALOG so I can enlarge it?
0 Kudos
Message 1 of 2
(2,934 Views)
Hello Steve,

This resizing and placing is all done within the ArrangeControls method of the CTestExecDlg class in the TestExecDlg.cpp file.  Currently the code is designed to fill the TESTEXEC_DIALOG with the other dialogs, so that there is no white space.  To disable this resizing or all the dialogs, or to implement your own code to resize controls you place on the form, you will need to modify this method.  Many of the methods that are called that control the size of these dialogs are very well documented on www.msdn.com, which will be one of your best resources.  If as you are doing this, you come across specific methods that you don't understand, or if you can be more specific as to a single task you are having trouble accomplishing, it will be easier for us to offer more specific advice. 

NickB
National Instruments
Applications Engineering
0 Kudos
Message 2 of 2
(2,916 Views)