1. Scrolling Toolbar??

Hi All,

The title says it. I had scrolling working relatively okay, then I
added a toolbar. When the window contents scroll, the toolbar goes
along for the ride... right out of sight.

I tried various things like added the scrollbars after the toolbar
was in place using addStyle(). I tried switching to getClientRect()
for window metrics (as opposed to getRect() which I was using). I 
tried not actually explicitly adding the scrollbars at all which,
to my surprise, still gave me scrollbars when I made a call to
setScrollRanges().

After digging through the API docs and win32lib v0.57.9, I think I
see two possibilities for how to fix this, but I need some more
information.

Possibility One: I could pass a RECT structure to ScrollWindow() 
(which I have set up through registerw32Procedure() to call the win32
function of the same name). I can get the values I need for the RECT
from getClientRect(), but I'm not sure how to set up a RECT "at arms
length" as it were. I'm assuming it's not as simple as passing a
four-value sequence that's pretending to be a RECT structure.

Possibility Two: I found a routine buried in win32lib called
fDoScroll(), but it isn't declared as global, so therefore isn't
callable without a hack. I'm assuming this is because fDoScroll()
hasn't been fully debugged and integrated into win32lib yet. Or 
should I be calling it through some other stub I don't know about?

I suppose there's a third possibility, too. Is there a way to tell
a window that its vertical scrollbar should have a 'y' offset of a 
certain value (so that its origin is _below_ the toolbar)?

For now, I've removed the toolbar and I can get along without it. But
if someone could shed some light on this for me, I'd really appreciate
it.

Thanks! (in advance)

-Ron T.

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu