Flicker when activating a control

Docking/MDI for Windows Forms Forum

Posted 18 years ago by Corie
Avatar
I developed an application using the UIStudio v2.07 with several toolWindows closing and activating when the user clicks a certain item. however there is a really annoying flicker on the left side of the screen when i a toolwindow is activated. there is also a flicker when i close a window. any ideas on how to get this out would be appreciated.
thanks

Comments (3)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Corie,

Due to the nature of how .NET Controls work when adding/removing them there might be a little bit of flicker. We try to suspend layout of controls during the add/remove process though to keep any flicker to a minimum. If you think there is a major flicker though, please let us know how to duplicate it in our sample project or email us a project of your own and we can take a look to see if we can do anything more.


Actipro Software Support

Posted 18 years ago by Ernst
Avatar
I see this bug too. This is reproducible with the sample project. Here are the steps:

1) Run the "Bar Controls" sample.
2) There is BarManager Properties window to the right. Hit its pin button to make it hide.
3) Make it auto-show and hit the pin button again. There is large solid rectangle displayed for a fraction of a second in the left top corner of the application.

Thanks,
Ernst
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Just spent an hour on this one... we have our code set up properly by suspending the layout of the parent control, adding the tool window container, and then resuming layout. However it seems to be a bug in Windows Forms where it will briefly draw the added control's background and then instantly draw it where it should.

Our originaly code should work fine and I tried manipulating the order of everything, but nothing seemed to resolve it. I finally did come up with a workaround of making the container being added a zero-size and then resuming layout, and then setting its real size. That does seem to work around the Windows Forms bug.

It will be in the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.