mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-18 15:14:09 +00:00
add MwLibraryInit
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@680 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -47,7 +47,7 @@ static void draw(MwWidget handle) {
|
||||
if(arrlen(cb->list) > cb->selected) {
|
||||
MwPoint p;
|
||||
|
||||
p.x = MwDefaultBorderWidth(handle) * 2;
|
||||
p.x = MwDefaultBorderWidth(handle) * 2 + 4;
|
||||
p.y = MwGetInteger(handle, MwNheight) / 2;
|
||||
|
||||
MwDrawText(handle, &p, cb->list[cb->selected], 0, MwALIGNMENT_BEGINNING, text);
|
||||
@@ -110,7 +110,7 @@ static void click(MwWidget handle) {
|
||||
if(l > width) width = l;
|
||||
}
|
||||
|
||||
cb->listbox = MwVaCreateWidget(MwListBoxClass, "listbox", handle, 0, MwGetInteger(handle, MwNheight), width, MwTextHeight(handle, "M") * 6 + MwDefaultBorderWidth(handle) * 2,
|
||||
cb->listbox = MwVaCreateWidget(MwListBoxClass, "listbox", handle, 0, MwGetInteger(handle, MwNheight), width, MwTextHeight(handle, "M") * 6 + MwDefaultBorderWidth(handle) * 2 + MwTextHeight(handle, "M") / 4,
|
||||
MwNsingleClickSelectable, 1,
|
||||
NULL);
|
||||
MwLLShow(cb->listbox->lowlevel, 0);
|
||||
|
||||
@@ -231,7 +231,7 @@ static void frame_draw(MwWidget handle) {
|
||||
MwLLDrawPixmap(handle->lowlevel, &r2, lb->list[i].pixmap);
|
||||
}
|
||||
p.y += MwTextHeight(handle, "M") / 2;
|
||||
p.x = MwGetInteger(handle->parent, MwNleftPadding) + MwDefaultBorderWidth(handle);
|
||||
p.x = MwGetInteger(handle->parent, MwNleftPadding) + MwDefaultBorderWidth(handle) + 4;
|
||||
for(j = 0; j < arrlen(lb->list[i].name); j++) {
|
||||
char* t = lb->list[i].name[j];
|
||||
|
||||
@@ -344,7 +344,7 @@ static void draw(MwWidget handle) {
|
||||
if(MwGetInteger(handle, MwNhasHeading) && arrlen(lb->list) > 0) {
|
||||
MwPoint p;
|
||||
int i;
|
||||
int x = 0;
|
||||
int x = 4;
|
||||
|
||||
r.width -= 16;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user