[MAXGUIEX] Panel with scrollbar?

BlitzMax Forums/MaxGUI Module/[MAXGUIEX] Panel with scrollbar?

Grisu(Posted 2008) [#1]
Hello guys!

I need to put a lot of different gadgets in a relative small main window. Is there an easy and bug free way to make a "scrollable panel"? - The window itself can't be resizable. :(

Grisu


SebHoll(Posted 2008) [#2]
Hi Grisu,

I started hacking one into MaxGUI.ProxyGadgets (back in the days when I had some free time :P), but it isn't quite finished yet.

Still, if you want to have a play, copy and paste this into a new file and import it into your project.

WARNING: ALPHA CODE (NOT TESTED, FEATURE COMPLETE OR BUG FREE)



Add gadgets to the panel returned by ScrollPanelClient(), and call UpdateScrollPanel() when you are finished to have the scrollbars update.

I have a nagging feeling that there is some strange behavior when resizing windows or it might have been with performance but you are welcome to have a play around and report back.

Have fun! ;-)


Grisu(Posted 2008) [#3]
As usual you save my day Seb. ;) Thanks!

At least I have something to waste my days off work on...


USNavyFish(Posted 2009) [#4]
Has anyone made improvements to this base, or know of any stable modules providing the functionality of a scrollpanel?


rs22(Posted 2009) [#5]
wxWidgets (wxMax) has one built in. I don't know of one for MaxGUI.