The "Webstore Store" example contains a "richtext" dialog item labeled "Review" that appears to be displaying unicode when expecting multibyte text. I've looked in the source and found the defintion for the "Review EditBox". When using xfmDialog_setDialogItemParam() some of the dialogItem expected entries are not easy to figure out. For example, the ItemType: I can't find a list of acceptable item types. In MDL, there is no "richTextBox", so how does one know that it's a valid parameter? I didn't see valid types in the help files, or I wasn't looking in the correct location. Also, what needs to change to make the "review" text display properly - change the "richTextBox" to a "textBox"?
Thanks,
Bruce
As It was reported, it is now fix for next release of Bentley Map. No more space, no more symbols, between characters.
Thanks - Found it !! I didn't dig deep enough.
Bruce,
In Bentley Map Customization Guide for Bentley Map SS2, there is a list of possible item types to pass into xfmDialog_setDialogItemParam:
xfmDialog_setDialogItemParam (dialogItemDef, XFMDIALOGITEMTYPE_TextBox, XFMDIALOGITEMPARAM_ItemType);
#define XFMDIALOGITEMTYPE_Button L"button" #define XFMDIALOGITEMTYPE_ComboBox L"comboBox" #define XFMDIALOGITEMTYPE_DateTime L"dateTime" #define XFMDIALOGITEMTYPE_Grid L"grid" #define XFMDIALOGITEMTYPE_PropertyGrid L"propertyGrid" #define XFMDIALOGITEMTYPE_RadioButton L"radioButton" #define XFMDIALOGITEMTYPE_RichTextBox L"richTextBox" #define XFMDIALOGITEMTYPE_TextBox L"textBox" #define XFMDIALOGITEMTYPE_TabPageList L"tabPageList" #define XFMDIALOGITEMTYPE_ToggleButton L"toggleButton"
I see that the RichTextBox item is using CHARFORMAT with default values (Courier, ANSI_CHARSET, etc.) with no way to change these defaults. So, I think you'll need to use the textBox instead.
Regards,
Chris
Hi Bruce,
I filled an internal Trouble Report (# 317164) about this problem. Thank you to have reported it.
Sebastien,
QA Geospatial Desktop.