python 2.7, wxPython ‘2.8.11.0 (msw-unicode)’, windows 7
create, wx.lib.buttons.GenBitmapToggleButton( pos = wx.Point(-1,-1), … ),
if pos.x is -1 and pos.y is -1, than control on the parent position is 0,0
if pos.x >= 0 and pos.y is -1, than control on the parent position is x, 200
wx.Button and wx.BitmapButton can set pos.x or pos.y or both -1, show control on parent position is 0
An ordinate value of "-1" has never been meaningful. Apparently, it
has changed from one non-sensical effect to another. You were just
lucky to get it to do what you wanted in the previous version. You
have always needed to use "legal" ordinate values. Only positive
values have a defined meaning.
···
On Aug 11, 11:55 pm, windwiny <windwiny....@gmail.com> wrote:
python 2.7, wxPython '2.8.11.0 (msw-unicode)', windows 7
create, wx.lib.buttons.GenBitmapToggleButton( pos = wx.Point(-1,-1), ...
),
if pos.x is -1 and pos.y is -1, than control on the parent position is 0,0
if pos.x >= 0 and pos.y is -1, than control on the parent position is x,
200
wx.Button and wx.BitmapButton can set pos.x or pos.y or both -1, show
control on parent position is 0
-----------------------
Notes: boa constructor 0.6.1 run on windows 7,
if open aero effect , palette panel button not visible.
Because create wx.lib.buttons.GenBitmapToggleButton, pos.y = -1 .
On Thu, Aug 12, 2010 at 2:14 PM, WinCrazy <pascor@verizon.net> wrote:
An ordinate value of "-1" has never been meaningful. Apparently, it
has changed from one non-sensical effect to another. You were just
lucky to get it to do what you wanted in the previous version. You
have always needed to use "legal" ordinate values. Only positive
values have a defined meaning.
This isn't true, -1 does have meaning. It means to use what ever the
default constraints for the window are.
aka wx.ID_ANY - a more meaningful constant (though I use -1 myself, perhaps I should change it for clarification)
···
On 12/08/2010 20:20, Cody Precord wrote:
Hi,
On Thu, Aug 12, 2010 at 2:14 PM, WinCrazy<pascor@verizon.net> wrote:
An ordinate value of "-1" has never been meaningful. Apparently, it
has changed from one non-sensical effect to another. You were just
lucky to get it to do what you wanted in the previous version. You
have always needed to use "legal" ordinate values. Only positive
values have a defined meaning.
This isn't true, -1 does have meaning. It means to use what ever the
default constraints for the window are.
Or the current value, or the default value, or the best size value, depending on the context (for example, if the widget is being created or it already exists.) All of the SetSize or SetPosition and etc. methods are eventually turned into a call to the C++ DoSetSize(x, y, width, height, flags) method. (In wxPython SetDimensions is the equivalent method.) The flags parameter says what to do if any of the other parameters are -1. See the C++ docs for SetSize for details.
···
On 8/12/10 12:20 PM, Cody Precord wrote:
Hi,
On Thu, Aug 12, 2010 at 2:14 PM, WinCrazy<pascor@verizon.net> wrote:
An ordinate value of "-1" has never been meaningful. Apparently, it
has changed from one non-sensical effect to another. You were just
lucky to get it to do what you wanted in the previous version. You
have always needed to use "legal" ordinate values. Only positive
values have a defined meaning.
This isn't true, -1 does have meaning. It means to use what ever the
default constraints for the window are.