Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between a wxFrame and a wxDialog?

difference wxframe
0
Posted

Whats the difference between a wxFrame and a wxDialog?

0

A frame is what you normally think of as a window; it’s used for the primary application display or documents or other long-running views. A dialog is for short term interactions to query the user for specific information. From the end user perspective, some platforms might render dialogs differently, e.g. with different decorations. From the programmer perspective, dialogs can (more easily) be modal, and don’t delete themselves on close so that you can retrieve the information from them after close. If you were writing a web browser in wxWidgets, the browser window would be a frame and the preferences dialog would be a dialog. If you were writing a word processor in wxWidgets, the document would be a frame and the font dialog would be a dialog. If you’re tempted to put an “OK” button on a top level window, it’s probably a dialog. If you’re tempted to use a menu with a top level window, it’s probably a frame.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123