Jump to content


Photo

NxLayout OnMouseEnter/Leave


  • Please log in to reply
5 replies to this topic

#1 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 28 September 2016 - 05:00 PM

My main project is in D7, but some of our other stuff is in D2005.  Today I tried to install v6 there and found an issue.

 

The {$IFNDEF DELPHI6/7} in NxLayout should just be changed to {IFDEF DELPHI2006UP}, which is when TControl introduced OnMouseEnter/Leave.

 

I wish Embarcadero would better document in which versions these things were added.

 

I found it here.

 

http://www.delphifee...for_delphi_2006



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 September 2016 - 12:02 AM

Hi,

Tell me does changing it to

    {$IFDEF MOUSEEVENTS}
    property OnMouseEnter;
    property OnMouseLeave;
    {$ENDIF}
and NxSuite6.inc file:

{ ------------------------------------------------------------- }
{ Purpose : Next Suite 6                                        }
{ By      : Bojan Nikolic                                       }
{ For     : BergSoft                                            }
{ ------------------------------------------------------------- }
{ Copyright (C) BergSoft.net 2011. 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}

                  /// UITypes unit added
                  {$DEFINE UI_TYPES}

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

                  {$IFNDEF VER230} // Not Delphi XE2

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

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

                      /// 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}
helps.
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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 September 2016 - 12:04 AM

If it works, I think I should move it to TNxControl6 and do check there.
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.

#4 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 29 September 2016 - 03:47 AM

If it works, I think I should move it to TNxControl6 and do check there.

 

I'll give it a try in the morning.



#5 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 30 September 2016 - 10:52 PM

By the way, this worked fine.



#6 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 30 September 2016 - 11:52 PM

One other thing.  The Delphi 2005 package group (Delphi 2005.bdsgroup) for v5 contains

<Projects Name="NxDBThirdpartyRun.bpl">Delphi 2005\NxDBThirdpartyRun.bdsproj</Projects>

which you appear to have pulled from other package files.

 

I deleted it, but you may want to update the master copy too.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users