Pages vues depuis 06/01/2019 : 17 690 930
Index du forum »» Développement »» Demande d'aide en C - MUI
Child, ColGroup(2),
Child, Label("Console:"),
Child, ListviewObject, MUIA_Weight, 50, MUIA_Listview_Input, FALSE, MUIA_Listview_List,
str=FloattextObject, MUIA_Frame, MUIV_Frame_ReadList, MUIA_Background, MUII_ReadListBack,
MUIA_Floattext_Text, (ULONG) "Bienvenue !", MUIA_Floattext_TabSize, 2, MUIA_Floattext_Justify, TRUE,
End, End,
End,
VOID PutTextMUI(char *val) {
//
// ULONG oldvaleur;
// GetAttr(MUIA_Text_Contents, texte, &oldvaleur);
// >> oldvaleur + val....
//
SetAttrs(str, MUIA_Floattext_Text, val);
}
string coucou("beworld");
PutTextMUI(("\nattention "+coucou+"\n").c_str());
const char * MakeMessage(const char * UserName)
{
static char WorkingBuffer[256];
snprintf(WorkingBuffer, 256, "\nAttention %s\n", UserName);
return WorkingBuffer;
}
void AppendTextMUI(char * text)
{
const char * oldtext;
GetAttr(MUIA_Floattext_Text, str, (ULONG *) &oldtext);
{
string newtext(oldtext);
newtext += text;
SetAttrs(str, MUIA_Floattext_Text, (ULONG) newtext.c_str(), TAG_DONE);
}
}