Opened 6 years ago

Closed 5 years ago

Last modified 6 weeks ago

#13616 closed defect (fixed)

wxScrolled<> does not disable scrollbars when wxALWAYS_SHOW_SB is used

Reported by: catalin Owned by:
Priority: normal Milestone:
Component: wxMSW Version: stable-latest
Keywords: wxScrolledWindow Cc:
Blocked By: Blocking:
Patch: yes

Description

In scroll sample update line 47 to

  : wxScrolled<wxWindow>(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL|wxALWAYS_SHOW_SB)

Start the sample, press F1, resize the simple frame.

Attachments (1)

scrolwin.h.patch download (487 bytes) - added by catalin 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by catalin

comment:1 Changed 5 years ago by catalin

  • Patch set

comment:2 Changed 5 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [72621]) Add support for wxALWAYS_SHOW_SB style to wxScrolled<>.

Simply call ShowScrollbars(wxSHOW_SB_ALWAYS) if this style is specified.

Closes #13616.

comment:3 Changed 6 weeks ago by Vadim Zeitlin <vadim@…>

In 27c399adb/git-wxWidgets:

Remove wxALWAYS_SHOW_SB-related code from wxScrolled

There is no need to handle this style specially here, it's supposed to
be handled at wxWindow level and is, indeed, at least in all the major
ports.

So revert 2119b213e378d69b8d13f4c8f6012b3aa381efe9 (see #13616) and the
workaround for it applied later for macOS (see #14856). And this also
removes the need for handling wx[HV]SCROLL in wxScrolled (see #17846).

Closes #14856, #17846.

Note: See TracTickets for help on using tickets.