DiscussionsIssue archiveOther usage issues

Archived discussion

View update problem ??? Help !!!

Other usage issuesWed, 03/25/2009 - 02:474 replies

Browse this forum
QuestionAuthor

If I use the myAISContext(AIS_InteractiveContext) to display some shape(AIS_Shape), the view can be immediately upated and display the shape.

However, when I put a drawing function in the CXXXView::OnDraw(), and call CXXXView::Invalidate(TRUE) somewhere to update view and draw my shape, I find the view can NOT be updated immediately. After I minimize or resize the window, then the shape can be displayed.

So, why the Invalidate() can NOT update the view, whereas the explicit actions, such as drag the window, resize the window,..., can update the view.

How to handle this problem, anybody knows ???

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

What about using the Redraw() method of V3d_View and the Update() method of V3d_Viewer depending on the case?

02Author

Thanks for your reply. But they are doesnot work.

03Commenter-1

You will have to explain your problem better then. Just in case: have you also tried the Redisplay() method of AIS_InteractiveContext?

04Author

Thanks for your continuous reply. The problem has been handled. It is my fault that I forget set some parameters.