Shoutbox

Scrollbar and Child Windows - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Scrollbar and Child Windows (/showthread.php?tid=91308)

Scrollbar and Child Windows by mathieumg on 07-02-2009 at 07:41 PM

I have doubts on the feasibility of this after reading this post, but I keep my hopes up.

I want to achieve something similar to this:

[Image: plusprefsscroll.png]

and I have this:

[Image: fileslisterprefsscroll.png]


When searching to see if this had been done before, I found this. This is exactly what I want to do. I also found this piece of code from Patchou, but I believe it is in C++.

I tried catching and sending SBM_ messages to my scrollbar control, but haven't had much success. I'm no expert with the Win32 API so I may have done something wrong too.

Thank you in advance for your help.


RE: Scrollbar and Child Windows by matty on 07-02-2009 at 08:15 PM

There isn't really a way of doing this unfortunately. You can listen to the messages of the scrollbar all you want but that wont accomplish much. The reason I say this is the child windows do not have a container to stay within therefore "scrolling" or in this case adjusting the position of the top of the window will cause it to display ontop of other controls (not the desired result).

I will make a suggestion for Plus! 5 to have a couple options included.
2 attributes for Windows:
<HScrollable>True/False</HScrollable>
<VScrollable>True/False</VScrollable>

And one for the Scrollbar:
<WndScrollbar>wChildWindowOne</WndScrollbar>

This would allow the window to be scrolled internally by patchou and the scrollbar would snap to the height of the child window.


RE: Scrollbar and Child Windows by mathieumg on 07-02-2009 at 08:59 PM

Thank you for the answer. So I imagine the only option for now is to make more option panels? :(