Opened 4 months ago

Closed 6 weeks ago

Last modified 6 weeks ago

#16247 closed enhancement (fixed)

Add window variant property to XRC

Reported by: vadz Owned by: VS
Priority: normal Milestone:
Component: XRC Version:
Keywords: simple Cc:
Blocked By: Blocking:
Patch: no

Description

Add common variant = normal|small|mini|large property to the XRC window handler to allow setting the window variant in the resources.

This should be easy to do by checking for this parameter in wxXmlResourceHandlerImpl::SetupWindow() in source:wxWidgets/trunk/src/xrc/xmlres.cpp and calling wxWindow::SetVariant() if necessary.

The following files will also need to be updated:

  1. Documentation in source:wxWidgets/trunk/docs/doxygen/overviews/xrc_format.h.
  2. XRC schema in source:wxWidgets/trunk/misc/schema/xrc_schema.rnc.
  3. Ideally the XRC sample to show the effect of this parameter.

Change History (4)

comment:1 Changed 6 weeks ago by VS

  • Owner set to VS
  • Resolution set to fixed
  • Status changed from new to closed

In 76996:

Add window variant support to XRC.

Fixes #16247.

comment:2 Changed 6 weeks ago by VS

In 76997:

Add window variant support to XRC.

Fixes #16247.

comment:3 Changed 6 weeks ago by VZ

In 77000:

Add a more complete example of different controls variants in XRC.

Add a dialog showing all the existing variants of a few common controls to
allow seeing at a glance how do they look.

See #16247.

comment:4 Changed 6 weeks ago by VZ

In 77002:

Add a more complete example of different controls variants in XRC.

Add a dialog showing all the existing variants of a few common controls to
allow seeing at a glance how do they look.

See #16247.

Note: See TracTickets for help on using tickets.