It works most of the time. There are two problems...
1. Only one window can be locked.... and in some instances the
VCL does it, so you cant.
2. It has unpredictable results on XP.... sometimes it works, other
times it doesnt.
From: "Paul McKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>,
"NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Subject: Re: [DUG] Screen flicker on updating control properties
Date sent: Tue, 14 Sep 2004 13:56:27 +1200
Send reply to: NZ Borland Developers Group - Delphi List <[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>
> Is LockWindowUpdate any good ???
>
> Regards
> Paul McKenzie
> SMSS Ltd.
> Wellington
> New Zealand
> ----- Original Message -----
> From: "Mark Howard" <[EMAIL PROTECTED]>
> To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 14, 2004 1:42 PM
> Subject: Re: [DUG] Screen flicker on updating control properties
>
>
> > Thanks for the replies, but it seems that the problem lies elsewhere: It
> > is not actually the Radio group control that is flickering, its a
> > Tnotebook that it holds some speed buttons. It must be being referenced
> > somehow while the RadioGroup properties are being updated.
> >
> > I'll have to do some tracking.
> >
> > Thanks
> >
> > Mark
> > On Tue, 14 Sep 2004 12:02:13 +1200, Robert martin <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Try this. It disables any windows control.
> > >
> > >
> > > procedure LockControl(Control: TWinControl; Lock: Boolean);
> > > //RM Dangerous, enables /disables a visual components displaying ability
> > > begin
> > > if (Control <> nil)
> > > and (Control.Handle <> 0) then begin
> > >
> > > if (Lock = True) then begin
> > > SendMessage(Control.Handle, WM_SETREDRAW, 0, 0);
> > > end
> > > else begin
> > > SendMessage(Control.Handle, WM_SETREDRAW, 1, 0);
> > > RedrawWindow(Control.Handle,
> > > nil,
> > > 0,
> > > RDW_ERASE or RDW_FRAME or RDW_INVALIDATE or
> > > RDW_ALLCHILDREN);
> > > end;
> > > end;
> > > end;
> > >
> > >
> > >
> > > Rob Martin
> > > Software Engineer
> > >
> > > phone 03 377 0495
> > > fax 03 377 0496
> > > web www.chreos.com
> > > Wild Software Ltd
> > > ----- Original Message -----
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, September 14, 2004 11:45 AM
> > > Subject: RE: [DUG] Screen flicker on updating control properties
> > >
> > >
> > >> The only thing I can see in Delphi 5 is TWinControl.DisableAlign &
> > >> .EnableAlign.
> > >>
> > >> I thought there might have been something like the BeginUpdate and
> > >> EndUpdate methods on TTreeNode, but not that I can see. :-(
> > >>
> > >> Good luck,
> > >>
> > >> C.
> > >>
> > >> -----Original Message-----
> > >> From: Mark Howard [mailto:[EMAIL PROTECTED]
> > >>
> > >> I am changing the number and text of items in a RadioGroup on a form
> and
> > >> re-setting the RadioGroup's size, at run time.
> > >> This is causing the screen to flicker.
> > >> Can the flicker be stopped?
> > >>
> > >> _______________________________________________
> > >> Delphi mailing list
> > >> [EMAIL PROTECTED]
> > >> http://ns3.123.co.nz/mailman/listinfo/delphi
> > >>
> > >
> > >
> > > _______________________________________________
> > > Delphi mailing list
> > > [EMAIL PROTECTED]
> > > http://ns3.123.co.nz/mailman/listinfo/delphi
> > >
> >
> >
> >
> > --
> > Forest Production Systems Ltd
> > Creators of PSLog - A harvesting information system
> > www.pslog.co.nz
> > _______________________________________________
> > Delphi mailing list
> > [EMAIL PROTECTED]
> > http://ns3.123.co.nz/mailman/listinfo/delphi
> >
>
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
Regards
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email [EMAIL PROTECTED] or [EMAIL PROTECTED]
======================================================================
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi