MwStringPrintIntoBuffer
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
87c870a6c0
commit
35d2b4bb76
21 changed files with 233 additions and 331 deletions
|
|
@ -16,7 +16,7 @@ void activate(MwWidget handle, void* user, void* call) {
|
|||
|
||||
(void)user;
|
||||
|
||||
sprintf(msg, "You pressed: %s", MwListBoxGet(handle, *(int*)call));
|
||||
MwPrintIntoBuffer(msg, 256, "You pressed: %s", MwListBoxGet(handle, *(int*)call));
|
||||
|
||||
msgbox = MwMessageBox(wmain, msg, "wow", MwMB_ICONINFO | MwMB_BUTTONOK);
|
||||
MwAddUserHandler(MwMessageBoxGetChild(msgbox, MwMB_BUTTONOK), MwNactivateHandler, destroy, msgbox);
|
||||
|
|
@ -48,7 +48,7 @@ int main() {
|
|||
|
||||
for(i = 0; i < len; i++) {
|
||||
char sz[16];
|
||||
sprintf(sz, "%d", (int)strlen(harvard[i]));
|
||||
MwPrintIntoBuffer(sz, 16, "%d", (int)strlen(harvard[i]));
|
||||
index = MwListBoxPacketInsert(packet, -1);
|
||||
MwListBoxPacketSetIcon(packet, index, px);
|
||||
MwListBoxPacketSet(packet, index, 0, harvard[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue