The text in the office demos jumps when the window is resized. And the text area flickers when the window is enlarged by pulling the top left corner.
Trond: add the following few of lines of code to the Office Example in order to eliminate the problem (not a ProGUI problem but an application specific problem).
Change in main event loop:
Code: Select all
; resize scintilla gadget when window resizing
If Event = #WM_SIZE
ResizeGadget(editor,0,RebarHeight(#REBAR_0),WindowWidth(#Window_0),WindowHeight(#Window_0)-RebarHeight(#REBAR_0))
EndIf
to :
Code: Select all
; resize scintilla gadget when window resizing
If Event = #WM_SIZE
SendMessage_(GadgetID(editor), #WM_SETREDRAW, #False, 0)
ResizeGadget(editor,0,RebarHeight(#REBAR_0),WindowWidth(#Window_0),WindowHeight(#Window_0)-RebarHeight(#REBAR_0))
SendMessage_(GadgetID(editor), #WM_SETREDRAW, #True, 0)
RedrawWindow_(GadgetID(editor),0,0,#RDW_NOERASE|#RDW_INVALIDATE|#RDW_UPDATENOW)
EndIf