public void checkfold() {
        for (Widget wdg = child; wdg != null; wdg = wdg.next) {
            if ((wdg == cbtn) || (wdg == fbtn))
                continue;
            if (folded) {
                if (wdg.visible) {
                    wdg.hide();
                    wfolded.add(wdg);
                }
            } else if (wfolded.contains(wdg)) {
                wdg.show();
            }
        }
        Coord max = new Coord(ssz);
        if (folded) {
            max.y = 0;
        } else {
            wfolded.clear();
        }
        if (this.cap.text.equals("Menu")) {
            if (folded) max.y = 18;
            else max = oldSize;
            recalcSize(max);
        } else
            recalcsz(max);
    }