ScrollPanel - Win32

Archives Forums/MaxGUI Bug Reports/ScrollPanel - Win32

degac(Posted 2010) [#1]
I just found a little 'bug' in the ScrollPanel gadget.
This is the original source example, I just replaced CreateButton with CreateLabel...


Here a screenshot of the 'error' when you 'scroll up & down' the panel..



Last edited 2010


jsp(Posted 2010) [#2]
I saw a similar effect with group panels and sliders when initially created or updated when outside the visible area.


Grisu(Posted 2011) [#3]
Sorry to bring this old thread up. :(

I have the same issues here with the latest version of MAXGUI.



It's not only connected to the scrollpanel. The black boxes also show up when you set Pixmaps to PushButtons without using a manifest file:



There has to be somthing wrong with the transparency masks.

Any updates on this?

System: Win7 (64 Bit) + ATI graphics card

Last edited 2011


Trinosis(Posted 2012) [#4]
I'm having the same issue with labels on a scroll panel.

I'm using the latest version of Blitzmax and Maxgui.

The issue seems to be the text background color defaults to black.

I can get around the problem using

SetGadgetColor(my_label , r , g , b , True)

But then that raises the issue of geting the correct background color the label is drawn on.

I can hard code this color, but i don't want to because i'm using the default windows appearance, which will probably be different for different operating systems.
So hard coding a color for my system, may be different for someone elses.

Another solution is to use

RedrawGadget(my_scrollpanel)

But there is a delay before the scroll panel is redrawn, so i get brief flashes of black.

Does anyone have fix for this ?

Thanks in advance.


jsp(Posted 2012) [#5]
As mentioned above I saw this when the gadget was initially outside.
Is the gadget also outside in your form?
If yes you could make the ScrollPanel hidden and bigger and setup all gadgets on top and then shrink it to the size you need and show it.

Another workaround could be:
LookupGuiColor( colorindex, red:Byte Var, green:Byte Var, blue:Byte Var )
which can retrieve the background color.


Trinosis(Posted 2012) [#6]
Hi jsp.

Thanks for the info.

I didn't know about LookupGuiColor, i'll give that a try.

Most of the text appears normal upon creation, but i do get the odd bit of text on black background without scrolling the panel.

Upon scrolling the panel, text that scrolls off screen and then back on appears with this black background.