Free cookie consent management tool by TermsFeed Policy Generator

Opened 8 years ago

Last modified 5 years ago

#2607 assigned defect

TabControl slows other controls and causes flickering

Reported by: pfleck Owned by: gkronber
Priority: medium Milestone: HeuristicLab 3.3.x Backlog
Component: MainForm.WindowsForms Version: 3.3.13
Keywords: Cc:


Controls on a TabControl resize slowly and flicker, as also reported on varios stack overflow articles (see below). In cases where calculation intensive resizing is involved (e.g. charts), the GUI freezes shortly due to resizing and flickers.

Most articles suggest setting the WS_EX_COMPOSITED flag on the TabControl:

protected override CreateParams CreateParams {
  get {
    CreateParams cp = base.CreateParams;
    cp.ExStyle |= 0x02000000;  // Turn on WS_EX_COMPOSITED
    return cp;

Some authors warn of possible side effects of this flag, so this should be properly tested.

Attachments (1)

Enable WS_EX_COMPOSITED on DragOverTabControl.patch (490 bytes) - added by pfleck 8 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 7 years ago by pfleck

  • Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.x Backlog

comment:2 Changed 5 years ago by gkronber

  • Owner set to gkronber
  • Status changed from new to assigned

I tested

Version 0, edited 5 years ago by gkronber (next)
Note: See TracTickets for help on using tickets.