#include #include int main(int argc, char **argv) { Ihandle *dlg, *multitext, *vbox; IupOpen(&argc, &argv); multitext = IupText(NULL); vbox = IupVbox( multitext, NULL); IupSetAttribute(multitext, "MULTILINE", "YES"); IupSetAttribute(multitext, "EXPAND", "YES"); dlg = IupDialog(vbox); IupSetAttribute(dlg, "TITLE", "Simple Notepad"); IupSetAttribute(dlg, "SIZE", "QUARTERxQUARTER"); IupShowXY(dlg, IUP_CENTER, IUP_CENTER); IupSetAttribute(dlg, "USERSIZE", NULL); IupMainLoop(); IupClose(); return EXIT_SUCCESS; }