Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 120139
Status: resolved
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: steve [...] stccg.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.9931



Subject: support wxScrolledWindow::ShowScrollbars for wxWidgets >= 2.9.0
Date: Tue, 07 Feb 2017 20:28:05 +0100
To: bug-Wx [...] rt.cpan.org
From: Stefan Slaby <steve [...] stccg.at>
hi, not sure where else to submit a patch for wxPerl? anyway, i just added the missing binding for wxScrolledWindow::ShowScrollbars on my dev system and wanted to share. Steven --- diff --git a/Constant.xs b/Constant.xs index dfa80fb..f82c25b 100644 --- a/Constant.xs +++ b/Constant.xs @@ -2500,6 +2500,11 @@ static double constant( const char* name, int arg ) // r( wxSB_SIZEGRIP ); r( wxSB_HORIZONTAL ); // scrollbar r( wxSB_VERTICAL ); // scrollbar +#if WXPERL_W_VERSION_GE( 2, 9, 0 ) + r( wxSHOW_SB_ALWAYS ); // scrolledwindow + r( wxSHOW_SB_NEVER ); // scrolledwindow + r( wxSHOW_SB_DEFAULT ); // scrolledwindow +#endif #if WXPERL_W_VERSION_GE( 2, 5, 3 ) r( wxSB_NORMAL ); // statusbar r( wxSB_FLAT ); // statusbar diff --git a/XS/ScrolledWindow.xs b/XS/ScrolledWindow.xs index 28d0992..d1d7a61 100644 --- a/XS/ScrolledWindow.xs +++ b/XS/ScrolledWindow.xs @@ -87,6 +87,15 @@ wxScrolledWindow::EnableScrolling( xScrolling, yScrolling ) bool xScrolling bool yScrolling +#if WXPERL_W_VERSION_GE( 2, 9, 0 ) + +void +wxScrolledWindow::ShowScrollbars( horz, vert ) + wxScrollbarVisibility horz + wxScrollbarVisibility vert + +#endif + void wxScrolledWindow::GetScrollPixelsPerUnit() PREINIT: diff --git a/typemap b/typemap index 5ea1e6b..715f5f5 100644 --- a/typemap +++ b/typemap @@ -64,6 +64,7 @@ wxUpdateUIMode T_ENUM wxWindowVariant T_ENUM wxImageResizeQuality T_ENUM wxAlignment T_ENUM +wxScrollbarVisibility T_ENUM wxFindReplaceDialogStyles T_ENUM wxFindReplaceFlags T_ENUM
Thanks. Added for 0.9931 On Tue Feb 07 14:36:06 2017, steve@stccg.at wrote: Show quoted text
> hi, > > not sure where else to submit a patch for wxPerl? > > anyway, i just added the missing binding for > wxScrolledWindow::ShowScrollbars on my dev system and wanted to share. > > Steven > > --- > > diff --git a/Constant.xs b/Constant.xs > index dfa80fb..f82c25b 100644 > --- a/Constant.xs > +++ b/Constant.xs > @@ -2500,6 +2500,11 @@ static double constant( const char* name, int arg > ) > // r( wxSB_SIZEGRIP ); > r( wxSB_HORIZONTAL ); // scrollbar > r( wxSB_VERTICAL ); // scrollbar > +#if WXPERL_W_VERSION_GE( 2, 9, 0 ) > + r( wxSHOW_SB_ALWAYS ); // scrolledwindow > + r( wxSHOW_SB_NEVER ); // scrolledwindow > + r( wxSHOW_SB_DEFAULT ); // scrolledwindow > +#endif > #if WXPERL_W_VERSION_GE( 2, 5, 3 ) > r( wxSB_NORMAL ); // statusbar > r( wxSB_FLAT ); // statusbar > diff --git a/XS/ScrolledWindow.xs b/XS/ScrolledWindow.xs > index 28d0992..d1d7a61 100644 > --- a/XS/ScrolledWindow.xs > +++ b/XS/ScrolledWindow.xs > @@ -87,6 +87,15 @@ wxScrolledWindow::EnableScrolling( xScrolling, > yScrolling ) > bool xScrolling > bool yScrolling > > +#if WXPERL_W_VERSION_GE( 2, 9, 0 ) > + > +void > +wxScrolledWindow::ShowScrollbars( horz, vert ) > + wxScrollbarVisibility horz > + wxScrollbarVisibility vert > + > +#endif > + > void > wxScrolledWindow::GetScrollPixelsPerUnit() > PREINIT: > diff --git a/typemap b/typemap > index 5ea1e6b..715f5f5 100644 > --- a/typemap > +++ b/typemap > @@ -64,6 +64,7 @@ wxUpdateUIMode T_ENUM > wxWindowVariant T_ENUM > wxImageResizeQuality T_ENUM > wxAlignment T_ENUM > +wxScrollbarVisibility T_ENUM > > wxFindReplaceDialogStyles T_ENUM > wxFindReplaceFlags T_ENUM