Jump to content


Syrob

Member Since 04 Oct 2008
Offline Last Active Aug 18 2010 05:21 PM
-----

Topics I've Started

General Question

13 August 2010 - 04:42 AM

In the event driven world of Delphi, there are a lot of event handlers for buttons etc.
The event handlers usually do some work. There is nothing to stop a user clicking a button many times and invoking an event while the prior event call is still working.
I know how I do it, but I am interested in how other programmers handle users that ignore the hourglass cursor and keep clicking a button?


nxtbx package

12 August 2010 - 06:13 PM

I tried to install the nxtbx package. It says I am missing two items. tb2k_d7 and tbx_d7.
Where are these located?

requires
rtl,
vcl,
NxCommonRun,
NxCollectionRun,
tb2k_d7,
tbx_d7;

fix to grid

12 August 2010 - 06:07 PM

I had to make a change to the grid clearrows to make footer clearing work ok. Don't know if in the newer versions but you may want to add this line.

procedure TNextGrid.ClearRows;
begin
inherited ClearRows;
FCells.ClearRows;
FFirstRow := 0;
FFirstVisibleRow := 0;
FLastVisibleRow := 0;
RefreshArea(gaBody);
RefreshArea(gaFooter); <<<<< added this line
RefreshArea(gaIndicator);
UpdateHorzScrollBar;
UpdateVertScrollBar;
end;