Problem in scrolling a dialog.
-
iam trying to scroll the controls in a dialog. i used ScrollWindow(....). to achieve this. i gave ctrl+down and up arrow keys to scroll up or down. till here no problem. but when i drag the slider available on the right side of the dialog, down or up, the controls are getting scrolled(obviously after some coding) but, the slider is moving back to its initial position. any ideas? to brief my problem, i want the slider in my dialog to stand at the place where i have left it, and also i should be able to get its position. thaks for any help.
-
iam trying to scroll the controls in a dialog. i used ScrollWindow(....). to achieve this. i gave ctrl+down and up arrow keys to scroll up or down. till here no problem. but when i drag the slider available on the right side of the dialog, down or up, the controls are getting scrolled(obviously after some coding) but, the slider is moving back to its initial position. any ideas? to brief my problem, i want the slider in my dialog to stand at the place where i have left it, and also i should be able to get its position. thaks for any help.
Does
Get/SetScrollPosition (...)
helps? I mean, when you click down and moving the mouse you use Get... to know where the viewport is, then when you release he button use Set... with the last ScrollPosition value.Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
-
Does
Get/SetScrollPosition (...)
helps? I mean, when you click down and moving the mouse you use Get... to know where the viewport is, then when you release he button use Set... with the last ScrollPosition value.Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
thanks nelek for your response. but iam unable to know the bar id (nbar) of the scroll bar. please note, i ve checked the "Enable Vertical Scroll" property of the dialog. if possible, please do me a favour. take a dialog based application in vc6.0, enable the scroll bar option in that, then try dragging the scroll bar and see. now you can easily understand my problem and iam sure you can solve it. please do this for me my friend, because iam stuck up there, and unable to deliver the application to the client. thank you. if required, i can send my source code to you.