Xojo Graphic Issues in Windows based Apps

Hi All, I’ve already read many other discussions about it but nothing that can really be considered resolutive.

I read Michael talking about the fact that controls overlapping causes this issue, but with some rare exceptions this is not my case so I’m trying to understand why my App that run so wonderful in Mac it is so terrible in Windows.

I’m pretty sure this huge Xojo issue can not be resolved within such a temporary circumstance like my private help request, anyway I would like you to let me know about all possible further fix I might apply to my app to prevent flickering & Graphic issues in Windows.

A video of the issues you’re seeing would help us understand what you’re having issues with and would greatly help any recommendations given.

A small sample project showing the issues would be much better than a video.

Any additional information you can provide will help.

1 Like

Right , this is the sample of my app.

Is this the problem? The large flicker on tab2 and the small control holes on tab3?

If not, could you explain how to replicate it or make a little video of it happening :slight_smile:

If this is the problem then change the order that you are doing things in MenuButton.Action for each of the three buttons so in MenuButton1.Action change:

// Hide Other Containers

Panel2.Visible = False
Panel3.Visible = False

// Show Container 1

Panel1.Visible = True

// Buttons

MenuButton2.Enabled = True
MenuButton3.Enabled = True
Me.Enabled = False

to

// Show Container 1

Panel1.Visible = True

// Hide Other Containers

Panel2.Visible = False
Panel3.Visible = False

// Buttons

MenuButton2.Enabled = True
MenuButton3.Enabled = True
Me.Enabled = False

Then repeat that change for the other two buttons.

There are other ways around this problem, but this is probably the easiest.

Correct Julian, these both are the problems, this occurs every time a new Panel is called. Also the two Lisboxes are " damned " and I would like them to be fixed too.

Frankly I don’t understand the tech aspect behind…

I let you know…

Yes, I confirm your modify fixes the problem but I still don’t understand the reason why it does.

How can I explain, in windows the drawing of the controls happen “in real time” as you call a visible=false it hides the control and causes the area to repaint, if the framework has time it will show the background of the window before the next visible=true. So for a moment you see nothing on the window as all containers are set to visible=false.

In the modified version when it sets the container controls to false there’s the container control you want already visible so it never has a chance to show the blank window.

I’m not sure if its part of macos or the mac version of the xojo framework, but on the mac all the changes happen “at the same time” before anything is shown to the user. It essentially double buffers the changes, so the changes happen where you can’t see them, then a switch happens and you see all the changes without seeing the steps in between.

I hope that helps a little.

3 Likes

Thank you Julian, you saved my day.

1 Like

Well I found that very helpful, so thanks - not sure if it affects me at the moment but well worth bearing in mind.