wxPreferencesEditor on OSX cannot be updated after first opened (Issue #22165)

25 views
Skip to first unread message

Daniel Kulp

unread,
Feb 25, 2022, 11:11:25 AM2/25/22
to wx-...@googlegroups.com, Subscribed

Describe the bug
On Windows (where wxPreferencesEditor is modal and destroyed each time), the pages get the TransferDataToWindow method called every time the user brings up the Preferences panel. Thus, the pages can be properly configured/updated to reflect whatever is the current state of the application.

On OSX, the TransferDataToWindow is ONLY called when the user first opens the preferences. If the user closes the preferences and then re-opens it, the pages do not get notifications to allow the pages to update.

In some applications, the preferences can be used to select a default view or default device or similar from some set of user created objects. The app needs to be able to update the list of objects whenever the wxPreferencesEditor is opened.

Expected vs observed behaviour
TransferDataToWindow is called whenever the preferences are opened (or page changed).

Platform and version information

  • wxWidgets version you use: 3.1.6
  • wxWidgets port you use: wxMSW, wxOSX
  • OS and its version: macOS 12.2.1
  • For wxGTK only:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22165@github.com>

VZ

unread,
Mar 22, 2022, 12:41:00 PM3/22/22
to wx-...@googlegroups.com, Subscribed

For the record, this comment explains what ought to be done here and why always calling TransferDataToWindow() is undesirable.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22165/1075376941@github.com>

VZ

unread,
Aug 30, 2026, 7:23:02 PM (2 days ago) Aug 30
to wx-...@googlegroups.com, Subscribed

Closed #22165 as completed via 777253e.


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/22165/issue_event/30249431728@github.com>

Reply all
Reply to author
Forward
0 new messages