- Berg Forum
- → AIM's Content
AIM's Content
There have been 27 items by AIM (Search limited from 30-March 23)
#15601 NextGrid 5.4 - word wrap in HTML columns
Posted by AIM on 12 May 2011 - 10:31 AM in NextGrid Component
Instead of writing the second name into the same line, it is wrapped and only displayed with a few pixels.
The HTMLColumn has already a WrapKind property. Would be perfect if you only enable word wrap if "WrapKind" is set to "wkWordWrap".
#15596 NextGrid 5.4 - word wrap in HTML columns
Posted by AIM on 11 May 2011 - 05:27 PM in NextGrid Component
Now, longer text in HTML columns is simply wrapped where it should be displayed to the right border of a cell without wrapping. The new forced wordwrap doesn't look well in such a case.
#15584 Bug in version 5.3.2011.1
Posted by AIM on 08 May 2011 - 07:56 PM in Next Collection
Yes, it's exactly that problem.
I also posted a fix at http://www.bergsoft....h...ost&p=15566
#15566 Scrollbar not always displayed in latest version 5.3.2011.1
Posted by AIM on 30 April 2011 - 08:51 PM in NextGrid Component
Thanks.
Could you please also fix that one:
http://www.bergsoft....?showtopic=3774
Simply use the following code that initializes FLeft/FTop/FBottom/FRight to the correct values:
begin
inherited;
FLeft := 0;
FTop := 0;
end;
and:
begin
inherited;
FBottom := 0;
FRight := 0;
end;
#15564 Scrollbar not always displayed in latest version 5.3.2011.1
Posted by AIM on 30 April 2011 - 08:32 PM in NextGrid Component
Reverting also back the functions SetMax and UpdateScrollBar to the previous version fully fixes this problem...
Concretely:
Un-commenting that line:
if FMax = Value then Exit;
and commenting that line:
{ Hide scrollbar if necessary }
//ShowScrollBar(FOwner.Handle, BarFlag, IsVisible);
#15561 Scrollbar not always displayed in latest version 5.3.2011.1
Posted by AIM on 30 April 2011 - 06:28 PM in NextGrid Component
I saw that you changed various things in the scrollbar code, but I don't know what exactly causes this problem. I reverted back to version 5.1.11.1 for now and everything is working well again.
Beside the bug I described at http://www.bergsoft....?showtopic=3774 this is the only bug I discovered.
#15504 Bug in version 5.3.2011.1
Posted by AIM on 06 April 2011 - 06:07 PM in Next Collection
in TNxIndent and TNxMargins you changed the default values for Left, Top etc. to 0.
You should also change these values in the constructors, otherwise they are initialized with wrong values when you use the default values 0. The constructor still contains the values from the previous version (9/5/8/4 or so).
#14974 NxGrid event won't work after Update to 5.12.10.1
Posted by AIM on 10 December 2010 - 02:00 PM in NextGrid Component
I have re-upload it.
I re-downloaded it now but OnDblClick and OnCellDblClick still don't work.
I found the reason now.
In constructor TNxCustomGrid.Create(AOwner: TComponent); you have the following code:
ControlStyle := ControlStyle + [csDoubleClicks, csReplicatable];
{$IFDEF DELPHI2010UP}
ControlStyle := [csGestures];
Touch.InteractiveGestures := [igPan, igPressAndTap];
Touch.InteractiveGestureOptions := [igoPanInertia,
igoPanSingleFingerHorizontal, igoPanSingleFingerVertical,
igoPanGutter, igoParentPassthrough];
{$ENDIF}
So after {$IFDEF DELPHI2010UP} the ControlStyle is overridden. Using the following code fixes this problem:
ControlStyle := ControlStyle + [csGestures];
Seems that you have to do another re-upload or to release a new fixed version
#14970 NxGrid event won't work after Update to 5.12.10.1
Posted by AIM on 09 December 2010 - 01:17 PM in NextGrid Component
I have now downloaded the latest version and it seems that this problem still persists. While the checkbox bug is fixed, DblClick or CellDblClick don't work with that latest upload.
I reverted back to 5.9.10.1 for now where everything works.
#14948 NxCheckboxColumn won't work after Update to 5.12.10.1
Posted by AIM on 04 December 2010 - 01:14 PM in NextGrid Component
Thanks, this fixes my problem.
#14942 NxCheckboxColumn won't work after Update to 5.12.10.1
Posted by AIM on 03 December 2010 - 03:07 PM in NextGrid Component
Yep. I need this, too.
#14910 nextGrid and DoubleBuffered in Delphi 2010
Posted by AIM on 26 November 2010 - 05:15 PM in NextGrid Component
#14878 Handle leaks
Posted by AIM on 22 November 2010 - 02:16 PM in NextGrid Component
At the moment I run intensive memory tests here and found two handle leaks in your code.
1. "procedure TNxCustomGridControl.RedrawBorder" seems to have a handle leak.
The following code fixes this leak:
......
DrawThemeBackground(Theme, DC, 1, 0, R, @R);
ReleaseDC(Handle, DC);
CloseThemeData(Theme); // <------------ added
end else BorderWidth := 0;
end;
2. Another thing I have observed is that "procedure TNxCustomGridControl.CreateWnd;" is called twice in certain TForms here. I could fix this leak by changing this method as follows:
begin
inherited;
if IsThemed then
begin
if FTheme = 0 then // <------------ added
begin // <------------ added
FTheme := OpenThemeData(Handle, teHeader);
FDefaultStyleDisplay.Theme := FTheme;
end; // <------------ added
end;
end;
#14772 How to set font color of cell without using events?
Posted by AIM on 15 October 2010 - 10:01 AM in NextGrid Component
+1
Just an idea, but you could add custom cell formatting dynamically. While the default value is nil, there shouldn't be a difference in speed and memory usage. When a value (pointer to TOptionalCellFormatting or whatsoever) is assigned, the custom cell formattings are applied.
BTW, I often use the TNxHtmlColumn for custom cell text color and formattings and never had a performance or memory problem with that
#14575 D2009 Package files broken in v5.9.10.1
Posted by AIM on 11 September 2010 - 08:01 PM in General Discussion
#14572 D2009 Package files broken in v5.9.10.1
Posted by AIM on 11 September 2010 - 06:36 PM in General Discussion
<DCCReference Include="..\..\Sources\NxCommon.dcr"/>
<DCCReference Include="..\..\Sources\NxCommon.dc"/>
<DCCReference Include="..\..\Sources\NxCommon.d"/>
<DCCReference Include="..\..\Sources\NxCommon"/>
<DCCReference Include="..\..\Sources\NxCommo"/>
<DCCReference Include="..\..\Sources\NxComm"/>
<DCCReference Include="..\..\Sources\NxCom"/>
<DCCReference Include="..\..\Sources\NxCo"/>
<DCCReference Include="..\..\Sources\NxC"/>
<DCCReference Include="..\..\Sources\Nx"/>
<DCCReference Include="..\..\Sources\N"/>
<DCCReference Include="..\..\Sources\"/>
<DCCReference Include="..\..\Sources"/>
<DCCReference Include="..\..\Source"/>
<DCCReference Include="..\..\Sourc"/>
<DCCReference Include="..\..\Sour"/>
<DCCReference Include="..\..\Sou"/>
<DCCReference Include="..\..\So"/>
<DCCReference Include="..\..\S"/>
<DCCReference Include="..\..\"/>
<DCCReference Include="..\..\..\Berg"/>
<DCCReference Include="..\..\Packages"/>
<DCCReference Include="..\"/>
<DCCReference Include="..\Delphi 2009"/>
Seems that something strange happens on your end. Simply compare the files with v5.8.10.1 where everything worked fine...
#14569 D2009 Package files broken in v5.9.10.1
Posted by AIM on 11 September 2010 - 11:18 AM in General Discussion
* The "Next Editors" component palette no longer shows icons
* The file "NxCommonDsgn_d2009.dproj" contains wired stuff, for example:
<DCCReference Include="NxCommonRun_d20.dcp"/>
<DCCReference Include="NxCommonRun_d2.dcp"/>
<DCCReference Include="NxCommonRun_d.dcp"/>
<DCCReference Include="NxCommonRun_.dcp"/>
<DCCReference Include="NxCommonRun.dcp"/>
<DCCReference Include="NxCommonRu.dcp"/>
<DCCReference Include="NxCommonR.dcp"/>
<DCCReference Include="NxCommon.dcp"/>
<DCCReference Include="NxCommo.dcp"/>
<DCCReference Include="NxComm.dcp"/>
<DCCReference Include="NxCom.dcp"/>
<DCCReference Include="NxCo.dcp"/>
<DCCReference Include="NxC.dcp"/>
<DCCReference Include="Nx.dcp"/>
<DCCReference Include="N.dcp"/>
A compare shows that the D2009 package files were changed in the latest version.
Is it safe to use the D2009 Package files from the previous version which work without any problems?
#14523 Crash on Windows shutdown
Posted by AIM on 24 August 2010 - 01:12 PM in NextGrid Component
Strange that you cannot reproduce this.
I have original D2009 and D2010, both with all updates installed. Comparing the VCL shows that they have changed/fixed some code for WM_ENDSESSION.
#14521 Crash on Windows shutdown
Posted by AIM on 24 August 2010 - 01:04 AM in NextGrid Component
#14519 Crash on Windows shutdown
Posted by AIM on 24 August 2010 - 12:51 AM in NextGrid Component
Ouch, sorry. This was a wrong information, I meant " Application.MainFormOnTaskbar := True" instead of "Application.ProcessMessages". Sorry.
In the meantime I figured out that this seems to be a bug in the D2009 VCL. It does not happen in D2010.
In D2010, the VCL performs more actions in TApplication.WndProc (and "WM_ENDSESSION") than in D2009. I have now tweaked my D2009 VCL and this crash no longer happens in combination with TNextGrid...
#14517 Crash on Windows shutdown
Posted by AIM on 24 August 2010 - 12:20 AM in NextGrid Component
Which Delphi version do you use?
#14515 Crash on Windows shutdown
Posted by AIM on 23 August 2010 - 11:42 PM in NextGrid Component
The EXE is from the sources that are included in the ZIP, I have nowhere added ProcessMessages.
Do you not get this crash when you compile the included sources with D2009?
#14513 Crash on Windows shutdown
Posted by AIM on 23 August 2010 - 11:08 PM in NextGrid Component
Here is the error log (occurs only with Application.MainFormOnTaskbar := True):
exception message : Access violation at address 004B51CF in module 'Project1.exe'. Read of address 00000008.
main thread ($fd0):
004b51cf +003 Project1.exe Forms TGlassFrame.FrameExtended
004ae42f +0d7 Project1.exe Forms TCustomForm.WMWindowPosChanging
00493db2 +2d2 Project1.exe Controls TControl.WndProc
004981eb +513 Project1.exe Controls TWinControl.WndProc
004aac58 +594 Project1.exe Forms TCustomForm.WndProc
00497904 +02c Project1.exe Controls TWinControl.MainWndProc
004741f4 +014 Project1.exe Classes StdWndProc
7c91e450 +010 ntdll.dll KiUserCallbackDispatcher
7e39f403 +00d USER32.dll SetMenu
004abbda +192 Project1.exe Forms TCustomForm.SetMenu
004ada5f +01b Project1.exe Forms TCustomForm.WMNCCreate
00493db2 +2d2 Project1.exe Controls TControl.WndProc
004981eb +513 Project1.exe Controls TWinControl.WndProc
004aac58 +594 Project1.exe Forms TCustomForm.WndProc
00497904 +02c Project1.exe Controls TWinControl.MainWndProc
004741f4 +014 Project1.exe Classes StdWndProc
7c91e450 +010 ntdll.dll KiUserCallbackDispatcher
7e37d0d1 +02e USER32.dll CreateWindowExW
0040a22f +03f Project1.exe Windows CreateWindowEx
00497028 +030 Project1.exe Controls TWinControl.CreateWindowHandle
004acc24 +0fc Project1.exe Forms TCustomForm.CreateWindowHandle
00496f45 +139 Project1.exe Controls TWinControl.CreateWnd
004a8d59 +005 Project1.exe Forms TScrollingWinControl.CreateWnd
004ac936 +00a Project1.exe Forms TCustomForm.CreateWnd
0049734e +016 Project1.exe Controls TWinControl.CreateHandle
0049ae98 +01c Project1.exe Controls TWinControl.HandleNeeded
0049aea5 +005 Project1.exe Controls TWinControl.GetHandle
004b1e09 +02d Project1.exe Forms GetTopMostWindows
7e37a5bf +011 USER32.dll EnumWindows
004b1ebd +02d Project1.exe Forms TApplication.DoNormalizeTopMosts
004b1f92 +002 Project1.exe Forms TApplication.NormalizeTopMosts
004b278d +315 Project1.exe Forms TApplication.WndProc
004741f4 +014 Project1.exe Classes StdWndProc
7c91e450 +010 ntdll.dll KiUserCallbackDispatcher
0049577f +05f Project1.exe Controls TWinControl.Destroy
0049cf01 +01d Project1.exe Controls TCustomControl.Destroy
00404150 +008 Project1.exe System 2451 +0 TObject.Free
004b91dd +011 Project1.exe NxScrollControl 933 +1 TNxScrollControl.Destroy
004be81f +0d3 Project1.exe NxCustomGridControl 729 +12 TNxCustomGridControl.Destroy
004c7280 +074 Project1.exe NxCustomGrid 329 +8 TNxCustomGrid.Destroy
004d011d +025 Project1.exe NxGrid 145 +2 TNextGrid.Destroy
004957ad +08d Project1.exe Controls TWinControl.Destroy
004a8d30 +028 Project1.exe Forms TScrollingWinControl.Destroy
004a99e9 +0f9 Project1.exe Forms TCustomForm.Destroy
004733ef +047 Project1.exe Classes TComponent.DestroyComponents
004a7b71 +035 Project1.exe Forms DoneApplication
00458876 +026 Project1.exe SysUtils DoExitProc
00405275 +065 Project1.exe System 2451 +0 @Halt0
004b287d +405 Project1.exe Forms TApplication.WndProc
004741f4 +014 Project1.exe Classes StdWndProc
7c91e450 +010 ntdll.dll KiUserCallbackDispatcher
7e378d72 +052 USER32.dll DefWindowProcW
7e37a034 +016 USER32.dll CallWindowProcW
004982e7 +0d7 Project1.exe Controls TWinControl.DefaultHandler
00493db2 +2d2 Project1.exe Controls TControl.WndProc
004981eb +513 Project1.exe Controls TWinControl.WndProc
00497904 +02c Project1.exe Controls TWinControl.MainWndProc
004741f4 +014 Project1.exe Classes StdWndProc
7c91e450 +010 ntdll.dll KiUserCallbackDispatcher
Attached Files
- NxCrash.zip 572.76KB 1 downloads
#14510 Crash on Windows shutdown
Posted by AIM on 23 August 2010 - 06:01 PM in NextGrid Component
#14509 Crash on Windows shutdown
Posted by AIM on 23 August 2010 - 05:37 PM in NextGrid Component
it seems that I tracked down a bug in my app that is caused by the NextGrid component.
Simple to reproduce:
1. Create a new project
2. Place a TNextGrid component onto the form (no columns or other changes are required)
3. Build the project
4. Start the project
5. Shut down windows
This produces a crash here (Seven and XP). A normal program exit by clicking the X button works fine.
Using D2009 and the latest NextGrid version.
Is this something you can reproduce? I think NextInspector has probably the same problem.
- Berg Forum
- → AIM's Content
- Privacy Policy