Opened 5 years ago

Last modified 9 months ago

#13503 confirmed enhancement

Iconize and maximize top level windows from XRC file

Reported by: RedTide Owned by:
Priority: normal Milestone:
Component: XRC Version: stable-latest
Keywords: work-needed maximized iconized xrc Cc:
Blocked By: Blocking:
Patch: yes

Description

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.

Attachments (2)

xrc_maximize_iconize.patch download (11.4 KB) - added by RedTide 5 years ago.
xrc_overview_doc.patch download (406 bytes) - added by RedTide 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by RedTide

Changed 5 years ago by RedTide

comment:1 Changed 9 months ago by vadz

  • Keywords work-needed added
  • Status changed from new to confirmed

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.

Note: See TracTickets for help on using tickets.