SdAskOptionsList: backslash not displayed
Posted 18 June 2003 - 12:04
I would like to ask you the following :
How to display a backslash through dialog box "SdAskOptionsList"?
I have a file with a list of lines beginning by wildcards. I want to display the contents of this file in the dialog box, so that the user can choose a line (and the wildcard linked).
With others wildcards, there is no display problem, but with the backslash, the line is NOT displayed in the dialog box, so that the user cannot choose it (in fact he could select the empty line and then afterwards the backslash is selected, but we cannot apply this solution).
Thanks in advance,
Posted 19 June 2003 - 09:12
You could try to find / replace all single backslashes to \\ in your file before you display it.
Posted 20 June 2003 - 14:54
I tried to put "\" and it displays the first " and nothing after.
I tried to put /\/ and it displays the first / and nothing after.
Please someone help!
Posted 20 June 2003 - 21:12
Be sure not to use any backslashes in the szComponent parameter, as this would be interpreted as sub-components.
Instead set the display text for the components you created using ComponentSetdata with COMPONENT_FIELD_DISPLAYNAME. You can use backslashes in this display name.
Posted 31 July 2003 - 08:05
you are right, the program calls the ComponentAddItem function. So, if we call ComponentSetData instead, do we need to substitute szComponent or could it do with twice the name of the component ?
because the name to display is the name of the component.
In fact the code was :
ComponentAddItem(MEDIA, Data, 0, FALSE)
where Data is the name to display.
So we put the following :
ComponentSetData (MEDIA, Data, COMPONENT_FIELD_DISPLAYNAME, 0, Data);
But it doesn't work either because "Data" is the component and is also interpreted as a sub-component.
Or we need to use other component name ?
Posted 31 July 2003 - 08:19