{ ------------------------------------------------------------- }
{ Purpose : Next Suite 6                                        }
{ By      : Bojan Nikolic                                       }
{ For     : BergSoft                                            }
{ ------------------------------------------------------------- }
{ Copyright (C) BergSoft.net 2018. All Rights Reserved.         }
{ ------------------------------------------------------------- }

{ Themes & Unicode Introduced in Delphi 2007 }
{ FormatSettings Global Var. Introduced in XE }

{ Is set until final release }
{$DEFINE BETA_VER}
{$UNDEF BETA_VER}

{ Allow using @ }
{$DEFINE UNSAFE}

{ InternetOpen, InternetOpenUrl... }
{$DEFINE WININET}

{$IFNDEF VER140} // Not Delphi 6
  {$DEFINE DROP_SHADOW}
  {$IFNDEF VER150} // Not Delphi 7
    {$DEFINE WIDESTRING_PROPERTY}
    {$DEFINE VERTICAL_ALIGNMENT}
    {$IFNDEF VER160} // Not Delphi 8 .NET
      {$DEFINE REGIONS}
      {$IFNDEF VER170} // Not Delphi 2005
        {$DEFINE MOUSEEVENTS}
        {$IFNDEF VER180} // Not Delphi 2006
          {$DEFINE UNICODE}
          {$UNDEF UNSAFE}
          {$IFNDEF VER185}
            {$IFNDEF VER200} // Not Delphi 2009
              {$DEFINE CUSTOM_PROPERTY_DRAWING}
              {$DEFINE INTERFACES}
              {$DEFINE GESTURES}
              {$DEFINE CHARINSET}

              /// RectWidth, RectHeight added
              {$DEFINE EXTENDED_TYPES}

              {$IFNDEF VER210} // Not Delphi 2010

                /// ftWideMemo
                {$DEFINE WIDE_MEMO}

                {$DEFINE NCCALCSIZE}
                {$DEFINE PADDING}
                {$DEFINE FORMAT_SETTINGS}
                {$IFNDEF VER220} // Not Delphi XE

                  /// No need to use NxTheme6 anymore
                  {$DEFINE THEMES}

                  /// TextHint Property added
                  {$DEFINE TEXT_HINT}

                  /// TDataLink.DataEvent
                  {$DEFINE NATIVE_INT}

                  /// Changed "Themed" function
                  {$DEFINE THEMED_RENAME}

                  {$IFNDEF VER230} // Not Delphi XE2

	                  /// UITypes unit added
                    {$DEFINE UI_TYPES}

                    /// Group EXT_1:
                    /// - ParentDoubleBuffered
                    /// - OnMouseActivate
                    {$DEFINE EXT_1}

                    /// Introduced in XE3
                    {$DEFINE STYLE_SERVICES}
                    {$IFNDEF VER260} // Not Delphi XE5 (Delphi XE5.5+)

                      /// UTF8Decode deprecated
                      {$DEFINE UTF8DECODE_DEPRECATED}

                      /// NumbersOnly property in TEdit
                      {$DEFINE NUMBERS_ONLY}
                    {$ENDIF}
                  {$ENDIF}
                {$ENDIF}
              {$ENDIF}
            {$ENDIF}
          {$ENDIF}
        {$ENDIF}
      {$ENDIF}
    {$ENDIF}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER140}
  {$DEFINE DELPHI6}
{$ENDIF}

{$IFDEF VER150}
  {$DEFINE DELPHI7}
{$ENDIF}

{ Borland Delphi 2005 }
{$IFDEF VER170}
  {$DEFINE DELPHI2005}
{$ENDIF}

{ Embarcadero Delphi 2010 }
{$IFDEF VER210}
  {$DEFINE DELPHI2010}
{$ENDIF}

{$IFDEF VER220}
  {$DEFINE DELPHIXE}
{$ENDIF}

{$IFDEF VER230}
  {$DEFINE DELPHIXE2}
{$ENDIF}

{$IFDEF VER240}
  {$DEFINE DELPHIXE3}
{$ENDIF}

{$IFDEF VER270}
  {$DEFINE BETA_FEATURES}
{$ENDIF}
