Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

parsertest project, Window refresh issue, rev 7788

(1/5) > >>

ollydbg:
See the screen shot, it looks like we need to force the main window to refresh when the progress dialog dismissed.


PS: The build-log panel should be refreshed too in some cases (I sometimes see this panel does not refreshed when C::B activated) :)

MortenMacFly:

--- Quote from: ollydbg on February 11, 2012, 03:35:27 am ---See the screen shot, it looks like we need to force the main window to refresh when the progress dialog dismissed.


--- End quote ---
Hmmm... you shouldn't actually see the main window when thee progress dialog is shown as it is hidden (in frame.cpp by calling Hide()). How did you manage to do that? (Doesn't happen here). :o

ollydbg:

--- Quote from: MortenMacFly on February 11, 2012, 06:21:53 am ---Hmmm... you shouldn't actually see the main window when thee progress dialog is shown as it is hidden (in frame.cpp by calling Hide()). How did you manage to do that? (Doesn't happen here). :o

--- End quote ---
The screen shot shows that the progress dialog is already closed. but I need to scroll on the textctrl to let the mainframe show its content correctly. This is the same issue when sometimes I see in build-log panel under c::b.

I'm using XP, wx2.8.12.

ollydbg:
It looks like there is a fatal bug in wxWidgets 2.8.12 (windows).

I even add code like below:

--- Code: ---    Show();

    m_LogCtrl->Refresh();
    m_LogCtrl->Update();

--- End code ---

But the logCtrl still not refreshed. This is the same behavior as the build-log.

Any one have meet this kind of problem?

ollydbg:
Ok, I find the reason:

In the wxsmith, the textctrl style has wxTE_RICH2(enabled), if I disable this option, then it refreshes FINE.

I have tried another option which I enable wxTE_RICH, the bug happens again.

I'm not sure what's the exact meaning of those options. See the documents:


--- Quote ---wxTE_RICH  Use rich text control under Win32, this allows to have more than 64KB of text in the control even under Win9x. This style is ignored under other platforms. 
wxTE_RICH2  Use rich text control version 2.0 or 3.0 under Win32, this style is ignored under other platforms 

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version