DirectButton question

I have a DirectFrame that covers the whole screen with some DirectButtons (the frame is the parent of the buttons).

one of the buttons calls another frame (that also covers the screen) and so hides the first frame. When I move my mouse around, I noticed I can still click the buttons on the 1st frame (even though I can’t see them).

Is this normal panda behavior? (I got around the problem, by destroying the 1st frame, but was just wondering)

It’s normal behavior if your DirectFrame isn’t clickable. (By default, a DirectFrame is set to state = DGG.DISABLED.) If you set state = DGG.NORMAL to your DirectFrame constructor, then it will be considered clickable and it will shadow any buttons behind it.

Still, destroying the frame that you don’t want to be clicked any more is good practice.

David