Avoiding Expensive Layout Computations Upon Resizing

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andrew (anonymous_at_discussions.microsoft.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 13:31:08 -0800

When a panel or other entity gets resized by a user and her mouse where many sizes are encountered until the mouse settles down, and the layout computations are expensive, it's nice to avoid doing the layout until the mouse settles down. That way the mouse will move smoothly, like when a splitter is being moved.

I can imagine implementing this using a timer. Is that the standard method, or is there a better way?

Andrew



Relevant Pages

  • Re: Stable PVR?
    ... I couldn't imagine going back to VCR ... hell. ... Andrew, contact via http://interpleb.googlepages.com ...
    (uk.tech.digital-tv)
  • Re: [patch 00/21] hrtimer - High-resolution timer subsystem
    ... Before I get into a detailed review, I have to asked a question I already ... just continue my own patch set. ... I don't really want that and Andrew ... > to still ensure that the timer is not delivered early. ...
    (Linux-Kernel)
  • Re: Stable PVR?
    ... I couldn't imagine going back to VCR ... hell. ... Andrew, contact via http://interpleb.googlepages.com ...
    (uk.tech.digital-tv)
  • Lady Jane, Bronwynn et al.....
    ... 'Wolfmother' is on at the moment........ ... It's *very* hard to imagine that Andrew is my nephew. ...
    (rec.food.cooking)
  • Re: Variations in TIME
    ... timer maintained by BASIC. ... The TIME keyword reads and sets the OS_Word interval timer, ... timer, which cannot be set, and you must read with the SWI as Andrew ... could use TIME$ to read the real-time clock. ...
    (comp.sys.acorn.programmer)