Jump to content


Photo

Cannot install new version. Fails to build Delphi 7 package.


  • Please log in to reply
5 replies to this topic

#1 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 30 August 2016 - 10:46 PM

[Error] NxCells6.pas(408): Undeclared identifier: 'TImageIndex'

"function GetImageIndex: TImageIndex;"

 

I simply removed the old version, left the Library path intact, copied in the new files from the zip and now can't install the update. :(

 

When searching within the source code, I see other references to TImageIndex, but I don't see where TImageIndex is defined.  Am I missing something?



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 August 2016 - 11:14 PM

Hi,

 

Can you tell me just which version of Delphi you use.

 

They have moved TImageIndex across units in latest versions. Most probably if using older version just add:

 

ImgList in uses section of NxCells6. It should like like this:

 

{ ------------------------------------------------------------- }
{ Purpose : NextGrid 6                                          }
{ By      : Bojan Nikolic                                       }
{ For     : BergSoft                                            }
{ ------------------------------------------------------------- }
{ Copyright (C) BergSoft.net 2015. All Rights Reserved.         }
{ ------------------------------------------------------------- }
{$I '..\NxSuite6.inc'}
 
unit NxColumns6;
 
interface
 
uses
  { Standard }
  Classes, Types, Windows, Graphics, Controls, ImgList, // <------- new one
  {$IFDEF UI_TYPES}UITypes,{$ENDIF}
  { Next Standard 6 }
  NxClasses6, NxTypes6, NxIntf6, NxEdit6, NxPopupCtrls6, NxConsts6, NxHTML6,
  NxStyles6, NxControls6;

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 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 30 August 2016 - 11:34 PM

See the post title?  Delphi 7.... Cannot install new version. Fails to build Delphi 7 package.

 

This is what's in the zip file I just downloaded today.  nextsuite6_8-16.zip

 

I'll add it and see what happens.

{ ------------------------------------------------------------- }
{ Purpose : NextGrid 6                                          }
{ By      : Bojan Nikolic                                       }
{ For     : BergSoft                                            }
{ ------------------------------------------------------------- }
{ Copyright (C) BergSoft.net 2016. All Rights Reserved.         }
{ ------------------------------------------------------------- }
{$I '..\NxSuite6.inc'}
unit NxCells6;

interface

uses
  { Standard }
  Classes, Types, Graphics, {$IFDEF UI_TYPES}UITypes,{$ENDIF}
  { Next Standard 6 }
  NxIntf6, NxClasses6, NxTypes6, NxConsts6, NxColumns6;



#4 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 30 August 2016 - 11:40 PM

Okay, problem fixed.  I changed instances of

{$IFDEF UI_TYPES}UITypes, {$ENDIF}

to

{$IFDEF UI_TYPES}UITypes, {$ELSE}ImgList, {$ENDIF}


#5 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 30 August 2016 - 11:44 PM

Now to see if updating fixes the other problem I was experiencing with the datagrid turning white and hiding cells when clicking in the row at runtime.



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 August 2016 - 11:53 PM

You are correct about {$ELSEIF}. I will do the same as ImageList is used for TImageList, but not TImageIndex anymore.


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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users