1. Sivaprakash BKR
  2. PowerBuilder
  3. Tuesday, 10 December 2019 13:55 PM UTC

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

 

Michael Kramer Accepted Answer Pending Moderation
  1. Tuesday, 10 December 2019 15:27 PM UTC
  2. PowerBuilder
  3. # 1

Do you have code in Activate event in such window, potentially in an ancestor class?

Try disable any code in Activate event even if it reduces functionality. At first you need to find the code introducing this flickering. Next, you can solve it; re-enable disabled code; etc.

HTH /Michael

UPDATE: Center = true may be the reason you see flicker! When window has center set it may display centered for fractions of a second before jumping to the (X, Y) position that code has set.

Conclusion: Center property can induce unexpected flickering. So only set the property for windows that really need that feature.

Comment
  1. Michael Kramer
  2. Wednesday, 11 December 2019 12:09 PM UTC
Hi Siva, when user switches between windows using the menu >> Does user click on the O/S generated menu items in the "Window" dropdown (or whatever dropdown you decided)?

- 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.
  1. Helpful
  1. Sivaprakash BKR
  2. Thursday, 12 December 2019 05:43 AM UTC
Michael Kramer,



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.

  1. Helpful
  1. Sivaprakash BKR
  2. Thursday, 12 December 2019 06:27 AM UTC
One more clarification.

All happens with the powerbuilder application, no OS related activities.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.