Re: Disable TListBox Redraw...



"J French" <erewhon@xxxxxxxxxx> wrote in message
news:42e88120.1260414@xxxxxxxxxxxxxxxxxxxxxxx
[...]
> ListBox1.Perform( WM_SETREDRAW, Integer(False), 0 );
[...]
> ListBox1.Perform( WM_SETREDRAW, Integer(True), 0 );
[...]
> I'm not too happy about the typecasting of True and False

Would using Ord or casting to LongBool make you feel better?


> On 27 Jul 2005 13:18:17 -0700, alanglloyd@xxxxxxx wrote:

>> TStrings.BeginUpdate / TStrings.EndUpdate surrounding your code.

This is the better solution anyway. It's 'in Delphi' and should work
when compiled on any platform.

Groetjes,
Maarten Wiltink


.



Relevant Pages

  • Re: Disable TListBox Redraw...
    ... >Would using Ord or casting to LongBool make you feel better? ... Also I tried typecasting to LongBool, ...
    (alt.comp.lang.borland-delphi)
  • Re: Difference between typecasting and casting
    ... What is difference between typecasting and casting? ... A cast is an explicit conversion, so casting is the act of performing an ... Typecasting, on the other hand, is what happens to an actor when they're ...
    (comp.lang.c)
  • Re: Difference between typecasting and casting
    ... What is difference between typecasting and casting? ... A cast is an explicit conversion, so casting is the act of performing an ... Typecasting, on the other hand, is what happens to an actor when they're ...
    (comp.lang.c)
  • Re: Difference between typecasting and casting
    ... What is difference between typecasting and casting? ... I think, in C atleast, the more precise term is cast. ... are probably better called as implicit conversions. ...
    (comp.lang.c)
  • Re: Difference between typecasting and casting
    ... Nishu wrote: ... What is difference between typecasting and casting? ... An unofficial term is a typecast. ...
    (comp.lang.c)