Project

General

Profile

Actions

Support #12412

open

dialog positions in wt3 vs wt4

Added by jeroen zpam 9 months ago.

Status:
New
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

No data to display

Actions

Also available in: Atom PDF