MsgBox Color

Curtis S.
Lititz, PA

Sep 2, 2009
3 Posts

0  |  0  

Re: MsgBox Color

Is there any way to change the color of a Message Box?  I would like to use color to allow an operator to differentiate between two separate test fixtures.

DrATEasy (Ron Y.)
Mission Viejo, CA

Sep 2, 2009
358 Posts

0  |  0  

Re: MsgBox Color

You cannot change the colorof the internal library MsgBox().
You can use the TestExec.drv display such a form. There is an example for the testexec message box in the TestExec.Prj example. To see it open the example and open Test 1.1 in UUT1 program. You should see the following code:

    TestExec Utility MessageBox("MessageBox", aMsgOk, "Test Exec Message Box example")
    ! test exec message box

    ! test exec modless message box example while test is running
    TestExec Utility Message Display("Performing Test... Please Wait...", "Test Exec Message Display (modeless message box example)", 20000)
    ! set back colors to red
    TestExec.m_frmMessage.BackColor=aclrRed
    TestExec.m_frmMessage.lblMessage.BackColor=aclrRed

Ronnie



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]