Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » Callback to refresh docked window
Callback to refresh docked window [message #37790] Mon, 12 November 2012 17:18
keltor is currently offline  keltor
Messages: 73
Registered: February 2012
Member
Hi "u++ers",

I am trying to deal with what I thought was a simple issue but for the love of me I can't seem to figure it out...

I have an OpenCascade control inside a Docked window. I have grouped it together with two other windows. So far so good. However, when I switch among them and go back to the OC window, it does not refresh properly. That is to say, it turns white and one has to drag the mouse on it to manually refresh it and show again the 3D stuff.

A similar issue happens when I toggle the main window (for example when I minimise it and then restore it). However, that I have solved by means of the GotFocus() virtual function.

I am looking for a callback, or a virtual function, that automatically calls my RefreshWindow() function every time I restore the OC Docking window inside my application. I have tried

class OCWindow : public Ctrl {
      void GotFocus() {
           RefreshWindow();
      }
};


but that doesn't solve the refresh problem.

Help anyone?

Thank you,

Kel
Previous Topic: Feature request: Synchronized timers?
Next Topic: manually creating callback
Goto Forum:
  


Current Time: Tue Aug 11 23:54:44 CEST 2020

Total time taken to generate the page: 0.01794 seconds