X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c3d7eab4fe9b0734d8fc7ec24eb74ff5dd636aa..6cc970f33269027d7c1fe58a6a93292d41b24217:/docs/tech diff --git a/docs/tech/tn0014.txt b/docs/tech/tn0014.txt index 636eac7c70..ce22912fdf 100644 --- a/docs/tech/tn0014.txt +++ b/docs/tech/tn0014.txt @@ -249,7 +249,7 @@ face comma-separated list of faces encoding charset of the font (meaningless in Unicode build), as string sysfont symbolic name of system standard font (one of wxSYS_*_FONT constants) -relativesize Float, font size relative to choosen system font's size; +relativesize Float, font size relative to chosen system font's size; can only be used when 'sysfont' is used and when 'size' is not used @@ -404,6 +404,30 @@ wxMenuBar and wxStatusBar children; objects of these types are automatically set as frame's tool-, menu- and statusbar respectively. +wxMenu +------ + +wxMenu objects can contain objects of class "separator" and "break" as well as +normal menu items, of class "wxMenuItem" described below. The menu itself can +also have the following elements: + +label I18nString "" +help I18nString "" +enabled Boolean true +style Style[wxMenu] only wxMENU_TEAROFF currently + +wxMenuItem +---------- + +label I18nString "" +accel String "" +bitmap Bitmap (empty) +bitmap2 Bitmap checked bitmap, wxMSW only +checkable Boolean false +radio Boolean false +enabled Boolean true +checked Boolean false ("checkable" and "radio") + wxMDIParentFrame ---------------- @@ -421,10 +445,13 @@ wxRadioBox ---------- This control may have "dimension" (major dimension) and (initial) "selection" -Integer subelements and a composite "content" element similar to wxCheckList. -The only difference is that the "item" subelements can have an optional -"tooltip=I18nString" and "helptext=I18nString" attributes to specify -the per-item tooltip and helptext. +Integer subelements and a composite "content" element similar to wxCheckList +except that subelements can have additional attributes: + +tooltip I18nString "" +helptext I18nString "" +enabled Boolean 1 +hidden Boolean 0 wxScrolledWindow @@ -501,17 +528,9 @@ appear within wxToolBar node. Their attributes are as follows: label I18nString "" tooltip I18nString "" longhelp I18nString "" - pos Position -1,-1 Constraints: At most one of "toggle" and "radio" attributes may be 1. - Attribute "pos" may not appear if "label" or "radio" attributes - are used or if parent wxToolBar's style contains wxTB_TEXT. - - Note: - Use of "pos" attribute is strongly discouraged, it is deprecated - usage of wxToolBar and it is not supported by MSW and GTK - implementations. Children objects are added to the toolbar using AddTool for "tool" class, AddSeparator for "separator" and AddControl for other classes.