Double titles on Mac Document windows

Some of our customers prefer the tabbed window approach.

I can get behind that.
But unless Xojo handles the change of size due to ‘becoming a tabbed window’ correctly, it’s ugly.

1 Like

I had a workaround for this which involved setting the height of a control to something new in the paint event. In my case I have a grid control (container control) that fills the height of the window. In the paint I have the following code:

If Self.Grid.Height <> Self.Height Then
  Self.Grid.Height = Self.Height
End If

The Grid.height assignment causes another paint when the tab opens or closes, which solved the problem for me. It’s a bit of a fiddle and generally I wouldn’t recommend changing controls visible properties in the Paint event, but it was the only thing I found that could fix the problem. The “If” prevents an infinite loop.

I’ve just signed on to the bug report. It really is worth getting the thumbs up on these things, it’s a major driver in Xojo’s decision of how many people the problem is affecting. The owner of the bug can also place their own thumbs up on the bug report.

1 Like