MenuItemSetTextColor

 

Change the text color of the menu item given in the main menu.

 

void @MenuItemSetTextColor(object menuitem, int color);

 

Parameter

object menuitem : Menu item

int color : Color

 

Return Value

None

 

Example

menuitem = @MenuItemFindByTitle("Graphic (&G)");
@MenuItemSetTextColor(menuitem, @RGB(255, 0, 0));
@MenuItemSetBackColor(menuitem, @RGB(0, 255, 0));
@MenuItemSetCheck(menuitem, 1);

 

Description : Find a menu item with the name "Graphic (& G)" and change the red background color to green and check the menu.

 

Version Information

Initial Support: 10.2.7

 

Related Helps

@TestGraphAddTag()

@TestGraphClear()

@TestGraphClearData()

@TestGraphGetValue()

@TestGraphRun()

@TestGraphSetData()

@TestGraphSetDataSize()

@TestGraphSetMilliLast()

@TestGraphSetValue()

@TestGraphStop()