wx.ScrolledWindow.DoPrepareDC()

Hi,

I have just downloaded wxPython 2.9.1.1 from Sourceforge.

Apparently, the DoPrepareDC method is missing from class
wx.ScrolledWindow. The method used to be there in wxPython 2.8, and
according to the documentation of wxWidgets it is part of
wxScrolled<T>, if I'm not wrong.

I would like to congratulate and thank Robin for his hard work.
Luca

Hi,

I have just downloaded wxPython 2.9.1.1 from Sourceforge.

Apparently, the DoPrepareDC method is missing from class
wx.ScrolledWindow. The method used to be there in wxPython 2.8, and
according to the documentation of wxWidgets it is part of
wxScrolled<T>, if I'm not wrong.

Use PrepareDC instead. AFAIK DoPrepareDC was always an "implementation detail" and not intended to be part of the public API.

I would like to congratulate and thank Robin for his hard work.

Thanks. It's not officially released yet as I'm still updating the web site and creating the general announcements, but I do expect that the binaries currently on SF are the ones that will be released so it's okay that the cat is out of the bag a little early. :slight_smile:

···

On 10/19/10 10:12 AM, l.allulli wrote:

--
Robin Dunn
Software Craftsman

> Apparently, the DoPrepareDC method is missing from class
> wx.ScrolledWindow. The method used to be there in wxPython 2.8, and
> according to the documentation of wxWidgets it is part of
> wxScrolled<T>, if I'm not wrong.

Use PrepareDC instead. AFAIK DoPrepareDC was always an "implementation
detail" and not intended to be part of the public API.

From wxWidgets: wxScrolled< T > Class Template Reference :
"If you don't wish to calculate your own scrolling, you must call
DoPrepareDC()"

and:
"void PrepareDC (wxDC &dc)
   This function is for backwards compatibility only and simply calls
DoPrepareDC() now."

Thanks!
Luca

Well, that's not quite how it was in the headers. PrepareDC still exists in wxWindow, but DoPrepareDC was removed from there (which is why I removed it) but I didn't see that both are now redeclared in wxScrollHelper. I'll change things to better match the docs.

···

On 10/19/10 11:07 PM, l.allulli wrote:

Apparently, the DoPrepareDC method is missing from class
wx.ScrolledWindow. The method used to be there in wxPython 2.8, and
according to the documentation of wxWidgets it is part of
wxScrolled<T>, if I'm not wrong.

Use PrepareDC instead. AFAIK DoPrepareDC was always an "implementation
detail" and not intended to be part of the public API.

From wxWidgets: wxScrolled< T > Class Template Reference :
"If you don't wish to calculate your own scrolling, you must call
DoPrepareDC()"

and:
"void PrepareDC (wxDC&dc)
    This function is for backwards compatibility only and simply calls
DoPrepareDC() now."

--
Robin Dunn
Software Craftsman