merge #4 from 2.6 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1170,6 +1170,31 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink)
|
||||
ConnectAdvise(ta->guid, disp);
|
||||
};
|
||||
|
||||
// Get properties
|
||||
// See bug #1280715 in the wxActiveX SF project
|
||||
for (int i = 0; i < ta->cVars; i++) {
|
||||
VARDESC FAR *vd = NULL;
|
||||
|
||||
typeInfo->GetVarDesc(i, &vd) ;
|
||||
BSTR bstrProperty = NULL;
|
||||
typeInfo->GetDocumentation(vd->memid, &bstrProperty,
|
||||
NULL, NULL, NULL);
|
||||
wxString propName(bstrProperty);
|
||||
m_props.push_back(PropX());
|
||||
int idx = m_props.size() - 1;
|
||||
m_propNames[propName] = idx;
|
||||
m_props[idx].name = propName;
|
||||
m_props[idx].memid = vd->memid;
|
||||
|
||||
ParamX param;
|
||||
param.isSafeArray = false;
|
||||
param.isPtr = false;
|
||||
param.flags = vd->elemdescVar.idldesc.wIDLFlags;
|
||||
param.vt = vd->elemdescVar.tdesc.vt;
|
||||
|
||||
m_props[idx].arg = param;
|
||||
m_props[idx].type = param;
|
||||
}
|
||||
|
||||
// Get Function Names
|
||||
for (int i = 0; i < ta->cFuncs; i++)
|
||||
|
@@ -12,6 +12,9 @@
|
||||
<h1 class="title">Recent Changes for wxPython</h1>
|
||||
<div class="section" id="id1">
|
||||
<h1><a name="id1">2.6.2.1</a></h1>
|
||||
<ul class="simple">
|
||||
<li>10-Jan-2006</li>
|
||||
</ul>
|
||||
<p>wxMSW: Fix for bug #1211907, popup menu indenting inconsistent with
|
||||
bitmaps.</p>
|
||||
<p>wxMac: Don't send an event for wx.RadioButton deselections, just the
|
||||
|
@@ -26,6 +26,7 @@ The following deprecated items have been removed:
|
||||
|
||||
2.6.2.1
|
||||
-------
|
||||
* 10-Jan-2006
|
||||
|
||||
wxMSW: Fix for bug #1211907, popup menu indenting inconsistent with
|
||||
bitmaps.
|
||||
|
@@ -374,6 +374,8 @@ public:
|
||||
// SetText()
|
||||
virtual void SetAccel(wxAcceleratorEntry *accel);
|
||||
|
||||
void SetBitmap(const wxBitmap& bitmap);
|
||||
const wxBitmap& GetBitmap();
|
||||
|
||||
// wxOwnerDrawn methods
|
||||
#ifdef __WXMSW__
|
||||
@@ -405,8 +407,10 @@ public:
|
||||
wxColour GetTextColour() { return wxNullColour; }
|
||||
void SetBackgroundColour(const wxColour& colBack) {}
|
||||
wxColour GetBackgroundColour() { return wxNullColour; }
|
||||
|
||||
void SetBitmaps(const wxBitmap& bmpChecked,
|
||||
const wxBitmap& bmpUnchecked = wxNullBitmap) {}
|
||||
const wxBitmap& bmpUnchecked = wxNullBitmap)
|
||||
{ self->SetBitmap( bmpChecked ); }
|
||||
|
||||
void SetDisabledBitmap( const wxBitmap& bmpDisabled ) {}
|
||||
const wxBitmap& GetDisabledBitmap() const { return wxNullBitmap; }
|
||||
@@ -419,9 +423,6 @@ public:
|
||||
void ResetOwnerDrawn() {}
|
||||
}
|
||||
#endif
|
||||
|
||||
void SetBitmap(const wxBitmap& bitmap);
|
||||
const wxBitmap& GetBitmap();
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@@ -1881,7 +1881,7 @@ class FloatCanvas(wx.Panel):
|
||||
|
||||
## create the Hit Test Dicts:
|
||||
self.HitDict = None
|
||||
|
||||
self._HTdc = None
|
||||
|
||||
self._DrawList = []
|
||||
self._ForeDrawList = []
|
||||
@@ -1905,7 +1905,8 @@ class FloatCanvas(wx.Panel):
|
||||
self.ObjectUnderMouse = None
|
||||
|
||||
# called just to make sure everything is initialized
|
||||
##self.OnSize(None)
|
||||
# this is a bug on OS-X, maybe it's not required?
|
||||
self.OnSize(None)
|
||||
|
||||
self.InHereNum = 0
|
||||
|
||||
@@ -2271,6 +2272,7 @@ class FloatCanvas(wx.Panel):
|
||||
pass
|
||||
|
||||
def MakeNewBuffers(self):
|
||||
#print "Making new buffers"
|
||||
self._BackgroundDirty = True
|
||||
# Make new offscreen bitmap:
|
||||
self._Buffer = wx.EmptyBitmap(*self.PanelSize)
|
||||
@@ -2307,7 +2309,11 @@ class FloatCanvas(wx.Panel):
|
||||
self._ForegroundHTdc = None
|
||||
|
||||
def OnSize(self,event):
|
||||
self.PanelSize = array(self.GetClientSizeTuple(),Int32)
|
||||
self.PanelSize = self.GetClientSizeTuple()
|
||||
if self.PanelSize == (0,0):
|
||||
## OS-X sometimes gives a Size event when the panel is size (0,0)
|
||||
self.PanelSize = (2,2)
|
||||
self.PanelSize = array(self.PanelSize, Int32)
|
||||
self.HalfPanelSize = self.PanelSize / 2 # lrk: added for speed in WorldToPixel
|
||||
if self.PanelSize[0] == 0 or self.PanelSize[1] == 0:
|
||||
self.AspectRatio = 1.0
|
||||
|
Reference in New Issue
Block a user