PanelGadget tab change flicker
Posted: Wed Mar 18, 2020 10:13 am
I have 10 tabs on a PanelGadget, with numerous gadgets on each one. When I click from one tab to another, there is a noticeable flicker when all gadgets redraw. Currently I can "fix" this in my window's main callback like below, but it still doesn't look ideal despite reducing the flicker a lot. Is there a better way?
Code: Select all
ElseIf Message=#WM_NOTIFY
Select *pnmh\code
Case #TCN_SELCHANGING ; Panel tab changing.
LockWindowUpdate_(WindowID(0)) ; Stops panel flickering.
Case #TCN_SELCHANGE ; Panel tab finished changing.
LockWindowUpdate_(0)