- Joined
- Aug 6, 2011
- Messages
- 405
- Reaction score
- 3
- Points
- 18
Working on my current orbiter module, I came across an annoyance related to the module type and description. I'm referring to the category a module is placed in in the "Modules" tab and the description that appears next to it.
Following ExtMFD's example, it seems like these are the strings in a resource script that are named IDS_TYPE and IDS_INFO.
I can successfully change my module's category by modifying the resource's string table, but regardless of what I enter for IDS_INFO, it does not appear in Orbiter.
Here is the string table inside my resource file.
and the cooresponding resource.h file
For comparision, here are the files in ExtMFD
String Table:
Resource.h:
This puts my module into a category named "Control", but does not display the description. Also, is any of this info in the orbitersdk reference? I couldn't find anything related to this, so I'm just working off of the samples.
Following ExtMFD's example, it seems like these are the strings in a resource script that are named IDS_TYPE and IDS_INFO.
I can successfully change my module's category by modifying the resource's string table, but regardless of what I enter for IDS_INFO, it does not appear in Orbiter.
Here is the string table inside my resource file.
Code:
STRINGTABLE
BEGIN
IDS_TYPE "Control"
IDS_INFO "SIMPIT CONTROLLER:\r\n\r\n Provides a general input output structure to help\r\n\r\nin creation of a simpit"
END
and the cooresponding resource.h file
Code:
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by SimpitMain.rc
#define IDS_TYPE 1001
#define IDS_INFO 1002
For comparision, here are the files in ExtMFD
String Table:
Code:
STRINGTABLE
BEGIN
IDS_TYPE "Tools and dialogs"
IDS_INFO "EXTERNAL MFD:\r\n\r\nProvides support for displaying MFD (multi-functional display) instruments in separate windows.\r\n\r\nExternal MFD windows can be opened by selecting the ""External MFD"" entry in the Custom Functions dialog (Ctrl-F4)."
END
Code:
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ExtMFD.rc
//
#define IDD_MFD 101
#define IDB_PIN 104
#define IDSTICK 999
#define IDC_WHOAMI 1000
#define IDC_IAM 1001
[B]#define IDS_TYPE 1001[/B]
#define IDC_REMEMBER 1002
[B]#define IDS_INFO 1002[/B]
#define IDC_DISPLAY 1003
#define IDC_BUTTON1 1004
#define IDC_BUTTON2 1005
#define IDC_BUTTON3 1006
#define IDC_BUTTON4 1007
#define IDC_BUTTON5 1008
#define IDC_BUTTON6 1009
#define IDC_BUTTON7 1010
#define IDC_BUTTON8 1011
#define IDC_BUTTON9 1012
#define IDC_BUTTON10 1013
#define IDC_BUTTON11 1014
#define IDC_BUTTON12 1015
#define IDC_BUTTON_PWR 1016
#define IDC_BUTTON_SEL 1017
#define IDC_BUTTON_MNU 1018
This puts my module into a category named "Control", but does not display the description. Also, is any of this info in the orbitersdk reference? I couldn't find anything related to this, so I'm just working off of the samples.