> why don't you just ditch that speedbutton you are trying to trap the help
> cursor on and use another type of button, it's a lot simpler :)
Because I'm trying to get this button into shape as well, but the thought is
there.
As for:
>Resources (GDI etc) have nothing to do with the amount of memory you have
in
>your computer.
You can shoot me down in flames if you like, but I believe that if you have
a resource meter, it should echo to some degree the actual physical memory
available at any given time. Like, we know it can spool out to virtual
memory, but when in physical is down, the system is not working as
efficiently right?
I wrote this a while back which seems to work ok:
var
THeapres: real;
THeapmem: word;
THeap: Tmemorystatus;
Systat:word;
begin
theap.dwLength := SizeOf(theap);
GlobalMemoryStatus(theap);
with theap do
begin
theapres := (theap.dwAvailPageFile / theap.dwTotalPageFile);
theapres := theapres * 100;
theapmem := theap.dwMemoryLoad;
end;
if (theapmem = 100) and (theapres < 89) and (systat <> theapres) then
begin
systat := round(theapres);
{result is systat(us) and so on...........}
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz