What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » ScrollBarControl

ScrollBarControl
Author: Message:
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
37 / Male / Flag
Joined: Jul 2003
O.P. ScrollBarControl
Does anyone have any idea how to use this??

I haven't seen any scripts that use this and I can't get it to flukishly work.

EDIT :

code:
<Control xsi:type="ScrollBarControl " Id="ScrollBar">
    <Position Top="5" Width="100" Height="100" Left="5" />
    <VerticalBar></VerticalBar>
    <HorizontalBar></HorizontalBar>
</Control>

Thats as much as PlusInterface.xsd requires (I think).

EDIT 2 :

code:
<Control xsi:type="ScrollBarControl" Id="ScrollBar">
    <Position Top="5" Width="100" Height="100" Left="5" />
    <VerticalBar></VerticalBar>
</Control>

Fixed the space, and only have one Bar thing. I can put it there, but don't see anyway to use it yet, anyone got any ideas?

This post was edited on 11-14-2006 at 10:30 AM by bigbob85.
11-14-2006 09:57 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: ScrollBarControl
Not all controls are usable by scripts.
11-14-2006 03:31 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: ScrollBarControl
You'll probably need to use SendControlMessage along with SBM_* messages. Search for MSDN Library for details :)
11-14-2006 04:12 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: ScrollBarControl
quote:
Originally posted by Mnjul
You'll probably need to use SendControlMessage along with SBM_* messages. Search for MSDN Library for details :)
I tried previously didn't work, the scrollbar wouldn't change when I clicked it, I set the Max and Min values and clicking it wouldn't change the position..

SBM_* Messages

quote:
Originally posted by Mnjul
plz wub me
I will wub wu

This post was edited on 11-14-2006 at 05:44 PM by matty.
11-14-2006 05:39 PM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: ScrollBarControl
I also gave this a try once and even had a go at attaching it to a textbox that you couldn't see al of it but it didn't work (it made the scrollbar like one pixel wide if i remember rightly).  I thought it was me doing something wrong but maybe not...
[Image: markee.png]
11-15-2006 04:47 AM
Profile PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: ScrollBarControl
it's usable as every other control with windows messages, hwoever, scrollbars are a pain in the bottom, even in C++ programs, they're just miles from being user friendly. Here's a piece of code from Plus! that may help you.

code:
SCROLLINFO infoScroll; ZeroMemory(&infoScroll, sizeof(infoScroll));
        infoScroll.cbSize = sizeof(SCROLLINFO);
        infoScroll.fMask = SIF_DISABLENOSCROLL|SIF_PAGE|SIF_POS|SIF_RANGE;
        infoScroll.nPage = rcOptionsArea.Height();
        infoScroll.nMax = pOptionsWnd->m_nRealHeight;
        infoScroll.nPos = pOptionsWnd->m_nCurrentScrollPos;
        if(infoScroll.nMax <= (int)infoScroll.nPage)
        {
            ::EnableScrollBar(wndScroll, SB_CTL, ESB_DISABLE_BOTH);
            wndScroll.ShowWindow(SW_HIDE);
        }
        else
        {
            ::EnableScrollBar(wndScroll, SB_CTL, ESB_ENABLE_BOTH);
            wndScroll.ShowWindow(SW_SHOW);
        }

        :: SetScrollInfo(wndScroll, SB_CTL, &infoScroll, TRUE);
[Image: signature2.gif]
11-15-2006 05:12 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On