How to place scrollbar on left? | developer.brewmp.com How to place scrollbar on left? | developer.brewmp.com

Developer

How to place scrollbar on left?

Forums:

For the IMenuCtl, I would like to place the scrollbar on the left. I do not see anyway in the IMENUCTL_SetProperties() function.

Any ideas?

Thanks,
Martin

Hi,
Actually, you can write a code to have your own scroll bar. To do this, you need to make all the colors like frame, scroll bar, scroll fill to your screen background color.
And then calculate the height of IMENU control (ie) your rct.dy, and draw the rectangle on the left side. Now based on AVK_UP or AVK_DOWN draw the scroll bar inside the rectanlge....
As of now there is no property to set the scroll bar on the left.
Hope this will help u to accomplish ur task.

Hi,
Actually, you can write a code to have your own scroll bar. To do this, you need to make all the colors like frame, scroll bar, scroll fill to your screen background color.
And then calculate the height of IMENU control (ie) your rct.dy, and draw the rectangle on the left side. Now based on AVK_UP or AVK_DOWN draw the scroll bar inside the rectanlge....
As of now there is no property to set the scroll bar on the left.
Hope this will help u to accomplish ur task.

Thanks Anand,
Custom making a left-hand scrollbar, would also require custom making the entire menu control, right? If not, the new left-hand scrollbar would overlap the existing horizontal menu item. In addition, the right hand side of the screen, would have a gap.
Your thoughts?
Martin

Thanks Anand,
Custom making a left-hand scrollbar, would also require custom making the entire menu control, right? If not, the new left-hand scrollbar would overlap the existing horizontal menu item. In addition, the right hand side of the screen, would have a gap.
Your thoughts?
Martin

just use setRect to shift the menu to the right for as wide as your scrollbar would be.. (you can also do this to hide the right hand scrollbar)
-Tyndal

just use setRect to shift the menu to the right for as wide as your scrollbar would be.. (you can also do this to hide the right hand scrollbar)
-Tyndal

Very nice ... Thank you!
Martin

Very nice ... Thank you!
Martin