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++)
<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
2.6.2.1
-------
+* 10-Jan-2006
wxMSW: Fix for bug #1211907, popup menu indenting inconsistent with
bitmaps.
// SetText()
virtual void SetAccel(wxAcceleratorEntry *accel);
-
+ void SetBitmap(const wxBitmap& bitmap);
+ const wxBitmap& GetBitmap();
+
// wxOwnerDrawn methods
#ifdef __WXMSW__
void SetFont(const wxFont& font);
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; }
void ResetOwnerDrawn() {}
}
#endif
-
- void SetBitmap(const wxBitmap& bitmap);
- const wxBitmap& GetBitmap();
};
//---------------------------------------------------------------------------
## create the Hit Test Dicts:
self.HitDict = None
-
+ self._HTdc = None
self._DrawList = []
self._ForeDrawList = []
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
pass
def MakeNewBuffers(self):
+ #print "Making new buffers"
self._BackgroundDirty = True
# Make new offscreen bitmap:
self._Buffer = wx.EmptyBitmap(*self.PanelSize)
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