mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-30 23:49:37 +00:00
9a7d20a7e1
FORMAT: new switches & checks SH:BREAK in FOR and WHILE ASM / S-C MASM: new directives, CString support and .HX LC / UC:bugfix DHGR.DRV:bugfix LIBGUI:wip CC:wip
32 lines
665 B
Plaintext
32 lines
665 B
Plaintext
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, C_WHITE);
|
||
guiSetProp(hWND, WND_P_pPTR, PTR_T_CROSS);
|
||
guiShowWnd(hWND);
|
||
|
||
do {
|
||
if (guiGetMsg(&msg))
|
||
{
|
||
// switch msg.type {
|
||
// case MSG_T_WND:
|
||
// break;
|
||
// }
|
||
}
|
||
} while (!bQuit)
|
||
|
||
guiDestroyWnd(hWND);
|
||
}
|
||
MAN
|
||
TEXT root/ctest/testgui.c
|