Article

From:
To:
Rudy Velthuis (TeamB)
Subject:
Re: Delphi Project X Cross GUI
Newsgroup:
embarcadero.public.delphi.non-technical

Re: Delphi Project X Cross GUI

On Thu, 28 Jan 2010 09:42:18 -0800, Rudy Velthuis (TeamB)
<✉rvelthuis.de> wrote:

>I guess one could use a function taking an anonymous method that
>performed the body, and which surrounded the body with BeginUpdate and
>EndUpdate.

I have no experience whatsoever with anonymous delphi methods and have
no rs2010 handy at the moment to try. please show actual code meeting
all my aforementioned requirements if possible. I also looked at
Allen's blog post describing Using but still having troubles figuring
out what analog of mine one-liner DISABLE_ENABLE_CONTROLS(SomeDataset)
will look like? right now I have to type the following
SomeDataSet.DisableControls();
try
  ....
finally
  SomeDataset.EnableControls();
end;

>My guards were more meant to free objects when they leave scope. Some
>kind of simple RAII objects.

understood thanks, but I want something more than that

-- Vladimir Ulchenko aka vavan
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Mon, 25 Nov 2024 11:18:01 UTC
Copyright © 2009-2024
HREF Tools Corp.