Jump to content


BelangerC

Member Since 18 May 2005
Offline Last Active Dec 05 2023 06:10 PM
-----

Posts I've Made

In Topic: Converting NG5 to NG6: Event substitutions summary

05 December 2023 - 05:44 PM

Hi, All:

 

After a LOT OF WORK and TIME, I will be abandoning my efforts to convert the use of current NextGrid 5 use to NextGrid 6.

 

For simple projects this conversion may work and certainly for new projects, one should use NG6, but for complex grids (Treed grids which are created from a database with stored grid property data, allow the user to add rows of data, single or multiple rows at a time, popup windows in various columns), there are just too many differences between the two components to be able to program around the differences allowing the same functionality and with the same expected behavior.

 

There are weird bugs which have been very difficult to trace, sometimes intermittent which essentially crash my program and require the user to restart. The worst appear to be occurring after adding child rows during run time: the grid will redraw with parts of the grid missing; the scroll bar will be missing meaning that the added rows are not even accessible; row parents will become collapsed even though the program does not call for that behavior, i.e. the parent rows should be expanded to reveal the added child rows. On close of the grid and reopening, everything appears correctly, but this closing and reopening the grid, which recreates the grid, is just too much to expect from the user, who is typically in a clinical situation with a client.

 

I wrote the code to allow easy user selection of which NextGrid to use, so that will not be a problem to revert back to NG5.

 

I hope others can use my posts to help them make any conversions in their own programs. I was hoping to leave my program with it using the more up-to-date NG6 component as I prepare to retire in the next few months. They are moving the application to a cloud based one which makes sense for them. (Distributing databases which have common and user specific data to users is a major overhead when doing updates. A single cloud based DB will, among other issues, simplify support and maintenance. When I started this project 20 years ago, fast cloud based databases simply did not exist. At that time programs with quick response and complicated user interfaces required local databases and applications.)

 

Best regards,

Chuck


In Topic: Getting "Error: -1" when Vertical Scrolling in NextGrid6

01 December 2023 - 06:52 AM

Hi, Boki:

 

As of the 9/2023 update this issue is still occurring and the code does not seem to have been changed. Still has the ShowMessage('Error') popup, plus getting ListIndex -1 out of bounds and requires users of my program to have to restart the program.

 

I actually did try to make a demo project for you last year but in such a simple grid, I could not get this error to happen. The grid is Treed for starters.

 

Seems to happen the most often after adding rows to the grid during execution of the program and then scrolling UP.  The above "fix" added to your code works. Could you add it to the next NextGrid6 release, so I don't have to keep re-adding it on my end?

Thank you,

Chuck


In Topic: Converting NG5 to NG6: Event substitutions summary

28 November 2023 - 09:13 PM

Hi, All:

 

This conversion OnHeaderDblClick = Use NxReportGridView61.OnHeaderMouseDown (ssDouble) DOES NOT WORK.  As far as I can determine, there is no way to get a HeaderDblClick-like event. ssDouble does not appear to be recognized by the OnHeaderMouseDown event. I ended up having to use a right mouse event instead which is somewhat problematic because users have been using dbl click.

 

It would be nice, Boki, to add some way (i.e. have event recognize the ssDouble, or an actual DblClick event) to have a double click event for the header.

 

Thank you,

Chuck


In Topic: NxComboBoxColumn6: how to get selected item into cell?

25 September 2023 - 12:01 PM

Thank you Boki!

 

i keep forgetting to recompile the packages after the updates. Important when you change the properties/events!

 

Chuck


In Topic: NG5 to NG6 Conversion: NG6 equivalent to TColumnType/Kind?

16 September 2023 - 10:51 AM

Hi, Boki:

 

Turns out that is what I tried. The problem I found is that TNxTreeColumn6 evaluates true when compared to TNxTextColumn6.

What I ended up using is Column.ClassName instead.

 

Hope that helps others with same issue.

Chuck