Project

General

Profile

Actions

Support #12412

open

dialog positions in wt3 vs wt4

Added by jeroen zpam almost 2 years ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/14/2024
Due date:
% Done:

0%

Estimated time:

Description

I'm trying to port an application wt3 to wt4. Now with dialogs I run into an issue.
We instantiate a dialog in the constructor and then from the menu we open it. In wt3
the dialog was shown in the center of the browser, this is what we want.

With wt4 though it is positioned in the top left. If I change the code to instantiate
the dialog from the event handler in the menu it is shown in the center again.

Am I doing something wrong here or is this a bug?

Attached the hello example with 2 buttons that each open a dialog. In wt3 they behave
the same, in wt4 one opens the dialog top-left and the other one in the center.


Files

hello-dlg-wt3.cpp (4.43 KB) hello-dlg-wt3.cpp jeroen zpam, 02/14/2024 08:21 AM
hello-dlg-wt4.cpp (4.82 KB) hello-dlg-wt4.cpp jeroen zpam, 02/14/2024 08:21 AM
Actions #1

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from New to Feedback
  • Assignee set to jeroen zpam

Hi Jeroen

I believe this issue has already been resolved in #12860. The test you provided seems to indicate as much.
Before closing the ticket, I'll ask for verification from you first.

Actions

Also available in: Atom PDF