![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Busy control fill color Hi All, Did you ever see a control very busy doing something? Yes, it is completely white and the wait cursor is spinning. We want to change the white color with somethign else, is it possible someway? Thanks, Alberto |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Busy control fill color "Alberto Bencivenni" <info@xxxxxx> wrote in message news:b1b65522-b908-4476-8281-ec0401fe75b1@xxxxxx Quote: > Hi All, > > > Did you ever see a control very busy doing something? Yes, it is > completely white and the wait cursor is spinning. > > We want to change the white color with somethign else, is it possible > someway? > > Thanks, > > Alberto > Did you try the suggestions to your previous post? -- Mike |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Busy control fill color Alberto, You can look into splitting the work of your application into threads. This will ensure that the UI of the control will continue to be rendered while the actual CPU-intensive work is off-loaded. Here is an article, which will give you a low-level insight on threading: http://www.codeproject.com/KB/thread...dinginnet.aspx, while http://msdn.microsoft.com/en-us/libr...undworker.aspx explores the BackgroundWorker component which gives a high-end interface for you to use. -- Stanimir Stoyanov http://stoyanoff.info "Alberto Bencivenni" <info@xxxxxx> wrote in message news:b1b65522-b908-4476-8281-ec0401fe75b1@xxxxxx Quote: > Hi All, > > > Did you ever see a control very busy doing something? Yes, it is > completely white and the wait cursor is spinning. > > We want to change the white color with somethign else, is it possible > someway? > > Thanks, > > Alberto > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Busy control fill color Stanimir, The busy work is just in repaint so there is no way to put everything on a different thread... Any other option or article that explain in details what happens in these situations? Thanks, Alberto |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Busy control fill color You might want to consider optimizing the repainting. Why exactly is the repaint process so CPU-intensive? If you could include an appropriate code excerpt, we could give more accurate suggestions. -- Stanimir Stoyanov http://stoyanoff.info "Alberto Bencivenni" <info@xxxxxx> wrote in message news:6c4294a0-5763-4755-b0ed-c3bf0d142ca5@xxxxxx Quote: > Stanimir, > > The busy work is just in repaint so there is no way to put everything > on a different thread... > > Any other option or article that explain in details what happens in > these situations? > > Thanks, > > Alberto > |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Busy control fill color Stanimir, It has to do with OpenGL that it tight to window Handle, so there isn;t much to do. Thanks, Alberto |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Busy control fill color Apply gamer techniques. Do your drawing into an off screen bitmap and just have you paint routine use the off screen bitmap to update the on screen one. Following is what my paint routine looks like in the animated map program i made. // The map handler draws everything into a bit map on a rate // The control just bit blitz it here. private void MapControl_Paint(object sender,System.Windows.Forms.PaintEventArgs e) { Bitmap map = mapHandler.Map; // get off screen bitmap if(map != null) e.Graphics.DrawImage(map,0,0,map.Width,map.Height); } Hope that helps. Leon Lambert Alberto Bencivenni wrote: Quote: > Stanimir, > > It has to do with OpenGL that it tight to window Handle, so there > isn;t much to do. > > Thanks, > > Alberto |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Busy .NET control repaint color | .NET General | |||
| Tab Control Color | .NET General | |||
| no color settings for nVidia control panel | Vista General | |||
| Control Panel/ Color Scheme doesn't work:( | Vista performance & maintenance | |||
| Color Management Applet in Control Panel | Vista music pictures video | |||