2021-09-07 12:11 AM - last edited on 2021-09-14 08:29 AM by Noemi Balogh
Hi,
I found that the list box header is also set using the list-box-header-strings-resource-ID, as below:
// set texts:
GS::UniString headerName;
RSGetIndString (&headerName, LAYER_DIALOG_LIST_BOX_HEADER_STRINGS_RESID, 1, ACAPI_GetOwnResModule());
layerList.SetHeaderItemText (layerNameTab, headerName);
RSGetIndString (&headerName, LAYER_DIALOG_LIST_BOX_HEADER_STRINGS_RESID, 2, ACAPI_GetOwnResModule());
layerList.SetHeaderItemText (statusTab, headerName);
RSGetIndString (&headerName, LAYER_DIALOG_LIST_BOX_HEADER_STRINGS_RESID, 3, ACAPI_GetOwnResModule());
layerList.SetHeaderItemText (filterStatusTab, headerName);
Though it can be set directly as:
// set texts:
buildMatList.SetHeaderItemText (BuildingMatNameTab, "Building Material");
buildMatList.SetHeaderItemText (PenIndexTab, "cutFillPen");
What is the difference between the two? Which one is used in which case? What is the reason for setting the header using the resource IDs?
Also, what is the acceptable value range for the List Box Header Strings Resource ID? I saw it was set to 32593 when the GDLG and DLGH were 32591 (for a dialog box). I am using a palette, so GDLG and DLGH are 32500. What should be the ID for the List Box Header Strings in this case?
Thanks!
2021-09-08 06:42 PM
@Miklos VeghThis is interesting... So we can add any extra data to a list-item which need not be the one to be shown in any of the list columns.
Thanks a lot!!