June 20, 201411 yr I'm working with the TextMenu example of the SimConnect SDK. I'm trying to get the text inside the textmenu window to display in Yellow but the enum element for that doesn't work...I get the default white color for the text. Here is my line SimConnect_Text(hSimConnect, SIMCONNECT_TEXT_TYPE_MENU, SIMCONNECT_TEXT_TYPE_PRINT_YELLOW, EVENT_MENU_1, sizeof(Menu1), (void*)Menu1); The enum element I'm using is "SIMCONNECT_TEXT_TYPE_PRINT_YELLOW" which should print the text in yellow (unless I'm mis-understanding the SDK). Here is the enum list: enum SIMCONNECT_TEXT_TYPE{ SIMCONNECT_TEXT_TYPE_SCROLL_BLACK, SIMCONNECT_TEXT_TYPE_SCROLL_WHITE, SIMCONNECT_TEXT_TYPE_SCROLL_RED, SIMCONNECT_TEXT_TYPE_SCROLL_GREEN, SIMCONNECT_TEXT_TYPE_SCROLL_BLUE, SIMCONNECT_TEXT_TYPE_SCROLL_YELLOW, SIMCONNECT_TEXT_TYPE_SCROLL_MAGENTA, SIMCONNECT_TEXT_TYPE_SCROLL_CYAN, SIMCONNECT_TEXT_TYPE_PRINT_BLACK = 0x0100, SIMCONNECT_TEXT_TYPE_PRINT_WHITE, SIMCONNECT_TEXT_TYPE_PRINT_RED, SIMCONNECT_TEXT_TYPE_PRINT_GREEN, SIMCONNECT_TEXT_TYPE_PRINT_BLUE, SIMCONNECT_TEXT_TYPE_PRINT_YELLOW, SIMCONNECT_TEXT_TYPE_PRINT_MAGENTA, SIMCONNECT_TEXT_TYPE_PRINT_CYAN, SIMCONNECT_TEXT_TYPE_MENU = 0x200 }; Thank you for any help... Ralph Freshour www.GMTPilots.com
June 21, 201411 yr Author Resolved. I had the text color argument in the wrong position in the function call. Ralph Freshour www.GMTPilots.com
Create an account or sign in to comment