wx2.8.4-mac Disappearing scroll bars
Matt Connolly
matt at soundevolution.com.au
Thu Jun 28 00:48:38 PDT 2007
I'm using "wxHSCROLL | wxALWAYS_SHOW_SB" (I'm after horizontal
scrolling to represent a time axis).
The flag "wxALWAYS_SHOW_SB" is commented as "this style is only
supported by wxUniversal and wxMSW so far".
What I want to do is set the virtual size to a size where the height
is the same as scrollWin->GetClientSize().y ... except that this
changes depending on whether or not the scroll bar is visible, which
of course changes based on how big the time axis is (ie: does the
virtual size width fit in the window, which of course changes if the
user resizes the window).
So I can't seem to determine the correct height of the virtual size
because it depends on the width (and the actual visible width of the
scrolling window). I want the view to be flexible horizontally and
fill the window vertically with the same height as the scrollwindow.
It's all so much simpler when the scroll bar is always there.
-matt
On 28/06/2007, at 5:04 PM, Greg Hellings wrote:
> I believe that adding the wxVSCROLL flag to the style when it is
> created will enable this behavior.
>
> --Greg
>
> On 6/28/07, Matt Connolly <matt at soundevolution.com.au> wrote:
>> Is there a way to make a scroll bar stay on the screen when it is
>> inactive?
>>
>> ie: when the document fits in the window, I still want to see the
>> scroll bars, but just have them go disabled (no thumb).
>>
>> My code running on windows (wxmsw-2.8.4) does this.
>>
>> Plenty of mac programs do this, and the suddenly disappearing /
>> reappearing scrollbars is creating a lot of jerky changes on the
>> screen.
>>
>>
>> Cheers,
>> Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2174 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070628/5c57561c/smime.bin
More information about the wx-users
mailing list