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
|
|
@ -82,7 +82,7 @@ static void activate(MwWidget handle, void* client, void* user) {
|
|||
v = fv / sv;
|
||||
}
|
||||
|
||||
sprintf(buf, "%g", v);
|
||||
MwPrintIntoBuffer(buf, 256, "%g", v);
|
||||
|
||||
MwVaApply(inp,
|
||||
MwNtext, buf,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ void color_callback(MwWidget handle, void* user_data, void* call_data) {
|
|||
rgb->red &= 0xff;
|
||||
rgb->green &= 0xff;
|
||||
rgb->blue &= 0xff;
|
||||
sprintf(hexColor, "#%02X%02X%02X", rgb->red, rgb->green, rgb->blue);
|
||||
MwPrintIntoBuffer(hexColor, 8, "#%02X%02X%02X", rgb->red, rgb->green, rgb->blue);
|
||||
MwSetText(window, MwNbackground, hexColor);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ void activate(MwWidget handle, void* user, void* call) {
|
|||
|
||||
(void)user;
|
||||
|
||||
sprintf(msg, "You pressed: %s", MwTreeViewGet(handle, call));
|
||||
MwPrintIntoBuffer(msg, 256, "You pressed: %s", MwTreeViewGet(handle, call));
|
||||
|
||||
msgbox = MwMessageBox(wmain, msg, "wow", MwMB_ICONINFO | MwMB_BUTTONOK);
|
||||
MwAddUserHandler(MwMessageBoxGetChild(msgbox, MwMB_BUTTONOK), MwNactivateHandler, destroy, msgbox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue