SimpleOpenGLcontrol Scrollbars?

Hey, I've been toying around trying to get some scroll bars to appear on my scene.

There are 2 funny things going on however.
First, I tried the AutoScroll option, but maybe I don't know what that's supposed to do Arf It says that it automatically makes scrollbars appear if the control contents are bigger than the area. So, what I have tried is docking "fill" with auto scroll bars assuming that it meant if there are things drawn outside it will scroll. Then I tried no docking, but making it very very large (the simpleopenglcontrol) as compared to the form it's on. Neither of these produced scroll bars. Any help?

Secondly (not really pertaining to the control per se), but I have the control in a panel with a status bar. The status bar is docked to the bottom and the control docked to fill. There's another control above (in the panel) docked to "top". The control stays below the top docked control, but goes under the status bar ~_~. Any idea why? I tried manually making scroll bars so that I could just set their max, and such, but the down scroll arrow is under the status bar Arf

Thanks,

Mike

I can't help with scroll

I can't help with scroll bars on a SimpleOpenGLcontrol (I've never tried it myself), but I ran into the same issue of the control going under a status bar. The fix was simple; cut out the simpleOpenGLcontrol and then paste it back in (it's apparently a bug in Visual Studio).

It isn't possible to add

It isn't possible to add scrollbars inside the SimpleOpenGlControl automatically. If you tried that, you would see the scollbars flickering as OpenGL would draw over them - at worst, it would crash (unlikely).

Your best bet is to create the scollbars manaally *outside* the SimpleOpenGlControl. Another solution is to use the scrollbar capabilities of Windows.Forms, but render the actual scrollbars yourself (through OpenGL).

Regarding the statusbar issue, maybe this has something to do with the z-order? Try playing with the z-order of the statusbar / scrollbars - it might help. Otherwise, try the jrwatt's cut & paste trick, it works.

------
OpenTK

Theme by La Boite a site | Powered by Drupal