Fix docs about wx.SizerFlags.Border
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,7 +26,7 @@ disturb existing code. For example, instead of writing::
|
||||
|
||||
you can now write::
|
||||
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10))
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL,10))
|
||||
|
||||
|
||||
Will Sadkin provided a patch for the wx.lib.masked package that fixes
|
||||
|
@@ -31,13 +31,13 @@ parameters using the named methods instead. For example, instead of::
|
||||
|
||||
you can now write::
|
||||
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10))
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10))
|
||||
|
||||
This is more readable and also allows you to create wx.SizerFlags
|
||||
objects which can be reused for several sizer items.::
|
||||
|
||||
flagsExpand = wx.SizerFlags(1)
|
||||
flagsExpand.Expand().Border(10)
|
||||
flagsExpand.Expand().Border(wx.ALL, 10)
|
||||
sizer.AddF(ctrl1, flagsExpand)
|
||||
sizer.AddF(ctrl2, flagsExpand)
|
||||
|
||||
|
@@ -11590,13 +11590,13 @@ class SizerFlags(object):
|
||||
|
||||
you can now write::
|
||||
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10))
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10))
|
||||
|
||||
This is more readable and also allows you to create wx.SizerFlags
|
||||
objects which can be reused for several sizer items.::
|
||||
|
||||
flagsExpand = wx.SizerFlags(1)
|
||||
flagsExpand.Expand().Border(10)
|
||||
flagsExpand.Expand().Border(wx.ALL, 10)
|
||||
sizer.AddF(ctrl1, flagsExpand)
|
||||
sizer.AddF(ctrl2, flagsExpand)
|
||||
|
||||
|
@@ -11590,13 +11590,13 @@ class SizerFlags(object):
|
||||
|
||||
you can now write::
|
||||
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10))
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10))
|
||||
|
||||
This is more readable and also allows you to create wx.SizerFlags
|
||||
objects which can be reused for several sizer items.::
|
||||
|
||||
flagsExpand = wx.SizerFlags(1)
|
||||
flagsExpand.Expand().Border(10)
|
||||
flagsExpand.Expand().Border(wx.ALL, 10)
|
||||
sizer.AddF(ctrl1, flagsExpand)
|
||||
sizer.AddF(ctrl2, flagsExpand)
|
||||
|
||||
|
@@ -11594,13 +11594,13 @@ class SizerFlags(object):
|
||||
|
||||
you can now write::
|
||||
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10))
|
||||
sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10))
|
||||
|
||||
This is more readable and also allows you to create wx.SizerFlags
|
||||
objects which can be reused for several sizer items.::
|
||||
|
||||
flagsExpand = wx.SizerFlags(1)
|
||||
flagsExpand.Expand().Border(10)
|
||||
flagsExpand.Expand().Border(wx.ALL, 10)
|
||||
sizer.AddF(ctrl1, flagsExpand)
|
||||
sizer.AddF(ctrl2, flagsExpand)
|
||||
|
||||
|
Reference in New Issue
Block a user