A2osX/ROOT/ctest/testgui.c..txt
2022-10-25 08:05:54 +02:00

32 lines
623 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
AUTO 3,1
#include <libgui.h>
MSG msg;
int bQuit=0;
int main(int argc, char *argv[])
{
short int hWND = guiNewWnd(WND_F_RESIZE+WND_F_MOVE+WND_F_CLOSE+WND_F_MAX+WND_F_MIN,
20,20,200,100);
guiSetProp(hWND, WND_P_pTITLE, "Libgui C API");
guiSetProp(hWND, WND_P_pSTATUS, "Status bar");
guiSetProp(hWND, WND_P_BGCOLOR, pC_WHITE);
guiShowWnd(hWND);
do {
if (guiGetMsg(&msg))
{
// switch msg.type {
// case MSG_T_WND:
// break;
// }
}
} while (!bQuit)
guiDestroyWnd(hWND);
}
MAN
TEXT root/ctest/testgui.c