Re: Which dialog classes can function without a top-level frame?

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Sat, 14 Sep 2024 16:00:34 +0300 Sean Tolstoyevski wrote:

ST> 1. Which dialog classes can operate without a top-level frame (i.e.,
ST> without a parent panel)?

 All dialogs should be able to operate without a parent.

ST> However, in my experiments, wxAboutDialogInfo doesn't seem to
ST> behave as expected.

 This is almost certainly due to the fact that you don't initialize the
library correctly (at least if your main function is complete). You must
initialize it using either wxInitializer or explicit wxEntryStart() call
and without this nothing, even wxMessageBox, is guaranteed to work (and, in
fact, wxMessageBox won't work in wxGTK, for example, because you won't have
any connection to X/Wayland display server before you initialize the
library).

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZuWKrgAKCRAG6kHeT2we
hodkAJ0arsSxrhYgZ768hLOT/Zh9F5n3BwCglSnghKJ/JvuygOfY3qREbfWqZfI=
=Qlbw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.