NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.
Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.
. . . hBmpGradientBkg := NTK_ReadPictureToBmp( "GradientBkg.jpg" ) CREATE BITMAP BRUSH FROM hBmpGradientBkg TO hWndBgkBrush // Create the main program window CREATE WINDOW hWndMain ; STYLE WND_STANDARD+F_MAX+F_MIN ; BRUSH hWndBgkBrush ; AT 0,0 SIZE CW_USEDEFAULT, CW_USEDEFAULT ; TITLE "Gradient background with NTKRad..." ; ON PAINT MainRepaint() . . .
. . . hBmpGradientBkg := NTK_ReadPictureToBmp( "GradientBkg.jpg" ) // Create the main program window CREATE WINDOW hWndMain ; STYLE WND_STANDARD+F_MAX+F_MIN ; AT 0,0 SIZE CW_USEDEFAULT, CW_USEDEFAULT ; TITLE "Gradient background with NTKRad..." ; ON PAINT MainRepaint() . . . FUNCTION MainRepaint(hWnd, nMsg, nwParam, nlParam, hDC) . . . // Draw Gradient Bkg @ 0,0 SAY WALLPAPER BITMAP HANDLE hBmpGradientBkg TO hWnd INTO CONTEXT hDC . . . RETURN 0
. . . @ 000,002 HYPERLINK "&Exit Program" SIZE 030,100 ; ID ID_BTN_QUIT ; SUPER ACCEL KEY K_ALT_C ; STATE NTK_BT_ENABLE ; FONT NTK_GetStockObject(ANSI_VAR_FONT) ; TEXTCOLOR NTK_RGB(255,255,255) ; BACKCOLOR NTK_RGB(255,255,128) ; BACKGROUND BRUSH hBtnBgkBrush ; BITMAP UP "16_ExitUp" ; BITMAP DN "16_ExitDn" ; BITMAP GRAYED "16_ExitOff" ; BITMAP OVER "16_ExitOvr" ; ACTION NTK_SendQuitEvent() ; // send a close signal to Exit program OF hWndMain ; MESSAGE "Close all and quit this app." . . .
. . . @ 002,220 BUTTON "&Test2..." SIZE 030,100 ; ID ID_BTN_TEST2 ; TYPE NTK_BT_OD_FREESHAPE ; STYLE BS_CENTER ; BITMAP UP "rBkgBtnUP" ; BITMAP DN "rBkgBtnDN" ; BITMAP OVER "rBkgBtnOvr" ; ACTION NTK_MsgBox(hWndMain, "Running Test2...") ; OF hWndMain ; MESSAGE "This is a freeshape button"+CHR(13)+; "using gradient bitmaps" . . .
1 to 6 of 6