Here are the steps to make choice dialog options text not wrap:
1. Create folder "MyDialogs" inside your application folder
2. Locate file choice.html in the
"{CSpro installation folder}\HTML\Dialogs" (default on Windows is "c:\Program Files (x86)\CSPro 7.7\html\dialogs\choice.html") folder and copy it to "MyDialogs" folder you've just created
3. Open "{your application}MyDialogs\choice.html" file in notepad and modify line 39 from this:
Code: Select all
<span class="col withNewline" style="white-space: nowrap;background:#ddd">{{caption}}</span>
to this:
Code: Select all
<span class="col withNewline" style="white-space: nowrap;background:#ddd;padding-right:64px;">{{caption}}</span>
4. In your PFF file add "HtmlDialogs=.\MyDialogs" under the [Files] section:
Code: Select all
[Files]
Application=.\TestCustomAccept.ent
InputData=|type=None
HtmlDialogs=.\MyDialogs
After this your options in accept dialog should not be wrapping anymore:
Note: The options text will still wrap if the length of text exceeds the screen size.
Don't forget to include MyDialogs\choice.html in your application distribution.
Alex