wow
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@770 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
39cd88e547
commit
2d5e2ae376
1 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ int main() {
|
|||
int i;
|
||||
MwListBoxPacket* packet;
|
||||
int index;
|
||||
MwLLPixmap px;
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
@ -37,6 +38,10 @@ int main() {
|
|||
NULL);
|
||||
lb = MwCreateWidget(MwListBoxClass, "listbox", wmain, 5, 5, 630, 470);
|
||||
|
||||
px = MwLoadIcon(lb, MwIconInfo);
|
||||
|
||||
MwSetInteger(lb, MwNleftPadding, 16);
|
||||
|
||||
packet = MwListBoxCreatePacket();
|
||||
index = MwListBoxPacketInsert(packet, -1);
|
||||
MwListBoxPacketSet(packet, index, 0, "Harvard sentence");
|
||||
|
|
@ -46,6 +51,7 @@ int main() {
|
|||
char sz[16];
|
||||
sprintf(sz, "%d", (int)strlen(harvard[i]));
|
||||
index = MwListBoxPacketInsert(packet, -1);
|
||||
MwListBoxPacketSetIcon(packet, index, px);
|
||||
MwListBoxPacketSet(packet, index, 0, harvard[i]);
|
||||
MwListBoxPacketSet(packet, index, 1, sz);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue