Example #1
0
int w_listbox_clear (w_object_t *object)
{
    w_listbox_t *lb;
    w_listbox_item_t *li;
    lb = object->data[OBJECT_LISTBOX];
    while ((li = w_listbox_item_active_get(object)) != NULL) {
        w_listbox_item_del(object, li);
    }
    lb->height = 0;
    lb->yoffset = 0;
    lb->active = 0;
    lb->pactive = -1;
    return 0;
}
Example #2
0
int w_listbox_set_active_style (w_object_t *object, unsigned int shape, unsigned int shadow)
{
    w_listbox_t *lb;
    w_listbox_item_t *li;
    lb = object->data[OBJECT_LISTBOX];
    lb->activeshape = shape;
    lb->activeshadow = shadow;
    li = w_listbox_item_active_get(object);
    if (li) {
        w_textbox_set_style(li->textbox->object, lb->activeshape, lb->activeshadow);
        w_object_draw(li->textbox->object);
    }
    return 0;
}
Example #3
0
void frame_three_button_del_pressed (w_object_t *object, int button)
{
	w_listbox_item_del(frame_three_listbox->object, w_listbox_item_active_get(frame_three_listbox->object));
}