const char *text,
int use_title,
VFrame **data)
- : BC_SubWindow(x, y, w, -1, -1)
+ : BC_SubWindow(x, y, 0, -1, -1)
{
highlighted = popup_down = 0;
menu_popup = 0;
images[i] = 0;
}
this->data = data;
- this->w_argument = 0;
+ this->w_argument = -1;
status = BUTTON_UP;
}
images[i] = new BC_Pixmap(parent_window, data[i], PIXMAP_ALPHA);
}
- if(w_argument > 0)
+ if(w_argument >= 0)
w = w_argument +
margin +
resources->popupmenu_triangle_margin;
get_h() / 2 - icon->get_h() / 2 + offset);
}
- draw_triangle_down_flat(get_w() - margin - resources->popupmenu_triangle_margin,
- get_h() / 2 - TRIANGLE_H / 2,
- TRIANGLE_W, TRIANGLE_H);
+ if( use_title >= 0 )
+ draw_triangle_down_flat(get_w() - margin - resources->popupmenu_triangle_margin,
+ get_h() / 2 - TRIANGLE_H / 2, TRIANGLE_W, TRIANGLE_H);
flash(flush);
return 0;