How to access editbox scrollbars in VB?
How do you gain access to the scroll bar data of an edit box or rich edit in VB? I need to be able to manipulate min/max variables and detect clicks on the bar so I can dynamicly load the contents of the edit box. Does anyone know how to do this?
"Victims...aren't we all?" -Brandon Lee, the Crow
You set a flag in the control and the control does it for you
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
This is not what I meant. I need to access the scroll bar of the edit box directly and manipulate it manually. I can not let the box control the bar. Now, if my question is clear, does anyone know how to do this?
"Victims...aren't we all?" -Brandon Lee, the Crow
I don't think there's a way of doing what you want to do. If you add scroll bars to your text box then you get stuck with the default behaviour and can't override it, as far as I know.
Why not use a multiline text box without scroll bars and add separate horizontal and vertical scrollbar controls? Check out Q161270 on MSDN for details of how to scroll the text box in response to the scrollbar events.
If this still doesn't answer your question then give more details of exactly what it is you're trying to do.
Moot
Edited by - Moot on March 7, 2001 12:56:35 PM
Why not use a multiline text box without scroll bars and add separate horizontal and vertical scrollbar controls? Check out Q161270 on MSDN for details of how to scroll the text box in response to the scrollbar events.
If this still doesn't answer your question then give more details of exactly what it is you're trying to do.
Moot
Edited by - Moot on March 7, 2001 12:56:35 PM
March 07, 2001 01:07 PM
Why don''t you ask this question on a site that isn''t targeting games programming?
quote:
Original post by Moot
I don''t think there''s a way of doing what you want to do. If you add scroll bars to your text box then you get stuck with the default behaviour and can''t override it, as far as I know.
Why not use a multiline text box without scroll bars and add separate horizontal and vertical scrollbar controls? Check out Q161270 on MSDN for details of how to scroll the text box in response to the scrollbar events.
If this still doesn''t answer your question then give more details of exactly what it is you''re trying to do.
Moot
Edited by - Moot on March 7, 2001 12:56:35 PM
Sounds like he''s trying to imitate events to make a program fake activity on the internet. But I would say to use the FlatScrollBar Control with a textbox that has it''s own scrollbars set to inactive.
BeS
It''s Da BOMB Baby!!!
. o O ~
A little nonsense now and then,
is relished by the wisest men
~ O o .
-- Willy Wonka
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka
March 13, 2001 10:13 AM
Have you checked out these API functions?
GetScrollBarInfo
GetScrollInfo
GetScrollPos
GetScrollRange
ScrollWindow
of course, each get has a corresponding set method as well.
If you are wanting to override the default behaviour of an edit box, then subclass (check out AddressOf) the edit box at runtime and provide a winproc that responds to the events/messages you are interested in handling.
If that still doesn''t get what you want, try creating your own customized scrolling edit control.
Good luck!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement