Hello,
Using PB 2017 R3
Got a MDI window and opening lot of windows with opensheet. Opened windows will get listed in the menu above. All windows are resized to fit the screen resolution. Works fine.
I get a flickering effect when switch from one window to another. It seems it first displays the window, in design time size, and then executes the code in resize event. This issue is there when I select a window from menu. This effect doesn't makes the window switching a nice one. I tried writing SetRedraw in open event, and also in resize event. Issue remains.
This flickering effect is not there when I open the window. And also when I switch window using Ctrl+tab. This effect is there only when I select a opened window from menu.
Have any one faced and solved this issue ? Any guidance to solve / minimize this effect ?
Happiness Always
BKR Sivaprakash
- or - does user click once more on the menu item that opened the window in the first place? (if yes to this question => what ode is in such a menu item?
I'm trying to gauge what code causes the flickering. We don't see flickering complaints every single day so something must be slightly different in your code or environment. Finding that difference is often the hardest part of solving the issue.
We have a menu like this, Menu1, Menu2, Menu3, Window, Exit
Each having their own sub menus.
Now, when a window is opened, in MDI sheet, we add that window name [ or screen name ] in the Window menu , so that user can switch between opened windows by navigating the Window menu.
After opening a set of windows, users can switch to another opened window, through the Window Menu. This window menu will list all opened windows, and user could select a window to bring that window to top.
While switching to another window, the event triggered are :
resize event of current window
resize event of switching window - 2 times.
In MDI method, resize event gets triggered 2 times.
Since no other code exists in any other relevant event, I didn't mention it here.
All happens with the powerbuilder application, no OS related activities.