Canvas Problem: 'Overdrawing' everything

Archives Forums/Linux Discussion/Canvas Problem: 'Overdrawing' everything

shinkiro1(Posted 2009) [#1]
Hello,

I am using the FLTK GUI Modul for developing a tilemap editor.
The Problem is the canvas created with the following code:

can_map = CreateCanvas( 0, 0, 600, 600, pan_map )
SetGadgetLayout can_map, 1,1,1,1



As you can see it isn't behaving right. I created the canvas in a panel so it shouldn't range over it's bounds, right?
I would be happy if you can help me :D

PS: Both TGadgets are globals.


markcw(Posted 2009) [#2]
This should be in MaxGUI Bug Reports. Maybe a moderator will move it soon.


shinkiro1(Posted 2009) [#3]
Would be nice to fix that soon because I have to stop the project for now.
Really nasty bug.


markcw(Posted 2009) [#4]
Er, can't you continue in Windows? MaxGUI is designed to behave as similar as possible on each platform. SebHoll is the MaxGUI developer but he seems to be busy at the moment.


skidracer(Posted 2009) [#5]
mark, are you confirming the bug?

The code posted contains no indication of how setviewport is called, which is requirement of correct canvas use.


markcw(Posted 2009) [#6]
No I just assuming Estrada was right but after some tests it seems this is expected behavior ie. that a canvas gadget does not get clipped when childed to a panel gadget. I've tested the following code in Max 1.34 on Linux and Windows with same results. SetViewPort only seems to affect what's drawn on the canvas. So not really a bug then.




shinkiro1(Posted 2009) [#7]
I tested it on WinXP with the same result, so it's really not a bug. Although it's a bit strange, I remember that in B+ it was not the case.

Anyway thanks for the help.