Jump to content


Photo

AutoCompletion unicode


  • Please log in to reply
8 replies to this topic

#1 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 17 April 2008 - 11:17 PM

in Tnx Components u have ifdef TNTUNICODE
only in nxAutoCompletion u have ifdef UNICODE
is it possible to change it to TNTUNICODE as well
so it will match to the other nx suite?

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 April 2008 - 10:01 PM

Hello Emailaya,

I am not sure that this may be done easily. But maybe Wim knows more.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 18 April 2008 - 10:51 PM

i already did it in my sources
its means changing all IFDEF UNICODE to IFDEF TNTUNICODE smile.gif

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 19 April 2008 - 12:04 PM

Hello Emailaya,

I have change it too.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 21 April 2008 - 04:23 PM

hi,

I would prefer a construction like

CODE
{$IFDEF TNTUNICODE}
  {$DEFINE UNICODE}  //Automatic Unicode if TNT is used too.
{$ELSE}
{.DEFINE UNICODE}   //For use without TNT
{$ENDIF}


As Autocompletion uses the WSDLIntf for it's TWideString class there is no need to have TNT installed. If TNT is installed using unicode for autocompletion is a obvious result.

QUOTE (Boki (Berg) @ Apr 19 2008, 01:04 PM) <{POST_SNAPBACK}>
Hello Emailaya,

I have change it too.

Best regards

G.W. van der Vegt

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 April 2008 - 05:57 PM

Hello Wim

I have made one ReplaceAll to made things back.

Can you please tell me how do I organize this code at the top of NxAutoCompletion.pas file:

CODE
{$I ..\NxSuite.inc}

{$IFDEF TNTUNICODE}
  {$DEFINE UNICODE}  //Automatic Unicode if TNT is used too.
{$ELSE}
{.DEFINE UNICODE}   //For use without TNT
{$ENDIF}

{$DEFINE _UNICODE}                                                               //Enable Unicode Support
{$DEFINE SHAUTOCOMPLETE}                                                        //Enable simple SHAutoComplete support
{$DEFINE COMBOBOXEX}                                                            //Enable ComboBoxEx Support

{$DEFINE TRACEAC}

{$IFDEF DELPHI6}
{$UNDEF UNICODE}
{$ENDIF DELPHI6}

{$IFDEF UNICODE}
{$MESSAGE HINT 'TNxAutoCompletion with Unicode support.'}
{$ENDIF UNICODE}


Best regards and thanks
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 22 April 2008 - 11:19 AM

Hi Boki

Something like this would be more compact:

CODE
{$IFDEF TNTUNICODE}
  {$DEFINE UNICODE}    //Automatic Unicode if TNT is used too.
{$ELSE}
  {$IFNDEF DELPHI6}      //Delphi 6 does not have a TWideString class so ignore UNICODE.
    {.DEFINE UNICODE}   //For use without TNT, replace . by $ to enable Unicode support.
  {$ENDIF DELPHI6}
{$ENDIF}

{$DEFINE SHAUTOCOMPLETE}    //Enable simple SHAutoComplete support.
{$DEFINE COMBOBOXEX}    //Enable ComboBoxEx Support.
{.DEFINE TRACEAC}                  //Debug option.

{$IFDEF UNICODE}
  {$MESSAGE HINT 'TNxAutoCompletion with Unicode support.'} //Just a Hint during Compilation.
{$ENDIF UNICODE}


You might have a look if TNT has a TWideString/List defined somewhere that you can use instead of the WSDL unit. In that case you could use that unit if TNT is used instead of the WSDL one.

QUOTE (Boki (Berg) @ Apr 21 2008, 06:57 PM) <{POST_SNAPBACK}>
Can you please tell me how do I organize this code at the top of NxAutoCompletion.pas file:

G.W. van der Vegt

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 22 April 2008 - 01:14 PM

Hello Wim,

Thank you. May I have one question please: May I write one small article abount NxFormulaParser and promote it a little better because I think that it is great component.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 23 April 2008 - 12:44 PM

Hi,

I've uploaded a new version that uses TnTWideStrings from TnT if compiled in.

QUOTE (Boki (Berg) @ Apr 22 2008, 02:14 PM) <{POST_SNAPBACK}>
Hello Wim,

Thank you. May I have one question please: May I write one small article abount NxFormulaParser and promote it a little better because I think that it is great component.

Best regards

G.W. van der Vegt




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users