TsPathDialog not Unicode compatible

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35114
    rodneyb
    Participant

    Hi Serge,

    I've come across a problem with TsPathDialog when using {$DEFINE TNTUNICODE} under Delphi 7.

    I'm running Win7x64 (english) with the 'Region and Language' in Windows set to the Russian locale.

    My D7 app has had Russian language support added to the project (by 'Project/Languages/Add…') and the Russian translations all set to 'translated'. Only one string has been changed to Russian ('Path').

    When I run the app, the button has the Russian characters correctly but clicking on the button to bring up the TsPathDialog causes an error. If I run the app with the locale set to English then the TsPathDialog shows up without a problem.

    It seems that the TsPathDialog is not supporting TnTControls (unicode) and looking at acPathDialog.pas seems to confirm this.

    Are you able to fix this please? It's the only thing left that is holding back the next release of our software.

    Thanks

    -Rod

    [attachment=5566:Bug9a.jpg]

    [attachment=5567:Bug9b.jpg]

    [attachment=5568:Project1.zip]

    #48086
    Support
    Keymaster

    Hello

    I think, you should add to the Project1.RUS something like this :

    {$R 'acPathDialog.dfm' PathDialogForm:TPathDialogForm}

    #48107
    rodneyb
    Participant

    I can also add the acPathDialog.PAS and DFM to the project to achieve the same thing. At least then I don't have to edit the Project1.RUS file every time I update the resource DLL/s.

    However, this still doesn't address the problem that the path dialog does not support unicode as shown below. The title and buttons all have Russian strings in the resource DLL but they are not shown since the acPathDialog code does not support WideStrings.

    Can this be fixed?

    Thanks,

    Rod

    [attachment=5602:Bug11.jpg]

    [attachment=5603:Project1.zip]

    Note: the project requires acPathDialog.pas (not included in zip file)

    #48242
    Support
    Keymaster

    You should include also this file in the russian project :

    {$R sStrings.res}

    Because string resources are stored there.

    A problem with showing of unicode directories in the ShellTreeView will be solved in the next release.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.