In an existing project, I have code to position a modal window in the upper right corner of the screen. This worked appropriately in Xojo 2019.r1.1 but in Xojo 2019.r2, the modal window is displayed in the center of the screen from left to right and about 1/3 of the distance from the top. It is a reasonably aesthetic choice but it is not what I want.
In the test snippet of code below, I can assign values to the modal window (winHelp in this example). Following the code executing in the debugger, these properties get correctly assigned, but when the window is displayed after the
winHelp.ShowModal command, the values for Left and Top have been changed so as to place the window in the central part of the screen.
winHelp.Top = 80
winHelp.Left = 100
winHelp.Title = theTitle
winHelp.HV_Help.LoadPage(winHelp.contentHTML, Nil) // Implicit Instantiation is on for this window so do not need to declare a new window
winHelp.ShowModal // Now it gets displayed
My impression is that ShowModal has been changed so as to force the location that Xojo has decided is best. My attempt assigning specific values to the winHelp.Left and winHelp.Top properties is ignored (overridden really. The values are reassigned.)
But I do not see this behavior explained explicitly in the documentation. I am asking for other’s experience in this regard and other people’s understanding of this situation.