mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-18 15:14:09 +00:00
add messagebox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@338 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -53,8 +53,8 @@ static void frame_mouse_up(MwWidget handle, void* user, void* call) {
|
||||
}
|
||||
|
||||
static void frame_mouse_move(MwWidget handle, void* user, void* call) {
|
||||
MwListBox lb = handle->parent->internal;
|
||||
MwPoint* p = call;
|
||||
MwListBox lb = handle->parent->internal;
|
||||
MwPoint* p = call;
|
||||
if(lb->pressed) {
|
||||
int st = 0;
|
||||
int i;
|
||||
@@ -64,7 +64,7 @@ static void frame_mouse_move(MwWidget handle, void* user, void* call) {
|
||||
st = get_first_entry(lb);
|
||||
for(i = 0; i < (h - MwDefaultBorderWidth * 2) / MwTextHeight(handle, "M"); i++) {
|
||||
if(y <= p->y && p->y <= (y + MwTextHeight(handle, "M"))) {
|
||||
lb->selected = st + i;
|
||||
lb->selected = st + i;
|
||||
}
|
||||
y += MwTextHeight(handle, "M");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user