Jump to content


deonvn

Member Since 16 Nov 2005
Offline Last Active Oct 21 2019 09:13 AM
*****

Posts I've Made

In Topic: Problem with Programmatically Selecting a Row.

31 March 2016 - 09:40 AM

Hi Steve

 

This has always been the case. SelectedCount returns the number of rows that are currently selected in a multi-select situation. Even if SelectedCount is greater than zero, SelectedRow might still be -1.

 

Because of this, you should always check if the row indicated by SelectedRow actually exists before using it.

if NextGrid1.RowExist(NextGrid1.SelectedRow) then
  begin
    ...
  end;

After you've indicated which rows are selected (in multi-select environment) you should then also indicate which one of the selected rows is the "currently selected" row (there can be only one).

for I := 0 to NextGrid1.RowCount -1 do
  begin
    if I mod 2 = 0 then
      NextGrid1.Row[I].Selected := True;
  end;

NextGrid1.SelectedRow := 4;

 


In Topic: Where is V6 for Delphi XE?

31 October 2015 - 11:02 AM

Hi Boki

 

Thanks. I have now installed most of the packages and everything seems to be working. I still can't compile or install NxDBGrid6Dsgn (it fails with NxDesignWindow6.dcu not found) but since I don't actually use the DBGrid it's OK for now. I can carry on testing in the meantime.

 

Regards,


In Topic: Where is V6 for Delphi XE?

30 October 2015 - 08:34 AM

Hi Boki

 

The first issue is the STYLE_ELEMENTS define. It looks like style elements were only introduced in XE3 - not XE2. I solved that by editing the INC file. Then it started complaining that "Never Build Package NxGridRun6 requires always build package NxStandard6". I could solve that by changing NxGridRun6 to from "Explicit Build" to "Rebuild as Needed". Then NxDBGridDesign6 wouldn't compile because it couldn't find NxWindowDesign6.dcu (or something like that). I could solve that be setting the search path for that package directly to the package output folder where the .dcu file was located. Then it started complaining that it couldn't find NxToolPalatte6 and started asking if I wanted to ignore missing properties. Around there is were I gave up :-(

 

I'll wait until you've got a working package for XE2 before trying to install it again.


In Topic: Where is V6 for Delphi XE?

29 October 2015 - 07:18 AM

Hi Boki

 

Any news on when we can expect the XE2 version?


In Topic: Where is V6 for Delphi XE?

19 October 2015 - 09:28 AM

Hi Boki

 

Still no packages for XE2? (The XE and XE3 packages don't work in XE2)