beginnings of drag and drop #33
1 changed files with 3 additions and 2 deletions
commit
1a3e6f0bc0
|
|
@ -9,6 +9,7 @@ static int wcreate(MwWidget handle) {
|
||||||
t->right = 0;
|
t->right = 0;
|
||||||
t->length = 0;
|
t->length = 0;
|
||||||
t->cursor_blink_timer = 0;
|
t->cursor_blink_timer = 0;
|
||||||
|
t->active = 0;
|
||||||
handle->internal = t;
|
handle->internal = t;
|
||||||
|
|
||||||
while(topmost_parent->parent) topmost_parent = topmost_parent->parent;
|
while(topmost_parent->parent) topmost_parent = topmost_parent->parent;
|
||||||
|
|
@ -40,7 +41,7 @@ static void tick(MwWidget handle) {
|
||||||
if(++t->cursor_blink_timer >= 30) {
|
if(++t->cursor_blink_timer >= 30) {
|
||||||
t->cursor_blink_timer = 0;
|
t->cursor_blink_timer = 0;
|
||||||
}
|
}
|
||||||
MwDispatch(handle, draw);
|
MwForceRender(handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void draw(MwWidget handle) {
|
static void draw(MwWidget handle) {
|
||||||
|
|
@ -185,7 +186,7 @@ static void mouse_down(MwWidget handle, void* ptr) {
|
||||||
MwEntry t = topmost_parent->monitored_entries[i]->internal;
|
MwEntry t = topmost_parent->monitored_entries[i]->internal;
|
||||||
t->active = MwFALSE;
|
t->active = MwFALSE;
|
||||||
t->cursor_blink_timer = 0;
|
t->cursor_blink_timer = 0;
|
||||||
MwDispatch(topmost_parent->monitored_entries[i], draw);
|
MwForceRender(topmost_parent->monitored_entries[i]);
|
||||||
}
|
}
|
||||||
t->active = MwTRUE;
|
t->active = MwTRUE;
|
||||||
MwForceRender2(handle, NULL);
|
MwForceRender2(handle, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue