wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.88k stars 1.73k forks source link

Iconize and maximize top level windows from XRC file #13503

Open wxtrac opened 12 years ago

wxtrac commented 12 years ago

Issue migrated from trac ticket # 13503

component: XRC | priority: normal | keywords: work-needed maximized iconized xrc

2011-09-22 00:35:43: RedTide (Andrea Zanellato) created the issue


This patch adds two new 'maximized' and 'iconized' properties to wxDialog, wxPropertySheetDialog, wxFrame and wxMDIXXXFrame XRC handlers. I've added a small demostration in xrcdemo, using a MDI frame with 2 childs: under MSW a child frame becomes iconized and the other maximized, under GTK the main MDI parent is maximized and also iconized on startup. The patch includes also the related documentation for doxygen.

In addition, I include another small patch for a typo in xrc overview.

wxtrac commented 12 years ago

2011-09-22 00:36:35: RedTide (Andrea Zanellato) uploaded file xrc_maximize_iconize.patch (11.4 KiB)

wxtrac commented 12 years ago

2011-09-22 00:36:57: RedTide (Andrea Zanellato) uploaded file xrc_overview_doc.patch (0.4 KiB)

wxtrac commented 8 years ago

2016-03-08 23:33:51: @vadz commented


Sorry for returning to this so late, I must have missed this patch back when it was submitted. Globally I think it's a useful feature and should be merged but it would be great if we could avoid repeating the same code for several different handlers and provide a single HandleTLWProperties(wxTopLevelWindow*) and just call it instead. If the original patch author (if he is still available) or anybody else could do it, it would be great.

We also need to update misc/schema/xrc_schema.rnc to mention the new elements.

Note that the second patch is not needed any more, it was already fixed in 8ae52ef8ccb0b94c16e8e13a59a7c59cb8dce065.

2016-03-08 23:33:51: @vadz changed status from new to confirmed