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.
/* * Program: DBedit.PRG * Launch: DBedit.EXE * Purpose: Mimic the DBedit() clipper function using NTKRad * Make: MKRAD DBedit */ #include "windows.ch" #include "ntkcmd.ch" Function MAIN() LOCAL hWndDemo LOCAL cWinTitle := ".:: A basic emulation for the Clipper DBedit() function ::." // Minimum Window declaration CREATE WINDOW hWndDemo TITLE cWinTitle // Display and put focus on current window ACTIVATE WINDOW hWndDemo NORMAL USE Product.dbf NEW // Open DB DBedit() // Create a child dataGrid-object // Start processing bkg events (animate the current window) AUTO HANDLE EVENTS OF WINDOW hWndDemo // Close current window after receiving a stop signal CLOSE WINDOW hWndDemo Return(Nil) Function DBedit(nTop, nLeft, nBottom, nRight) // Maybe you can also call it Browse() Local oB If !used() Return( Nil ) Endif Default nTop To 0 Default nLeft To 0 Default nBottom To __NTKMaxRow() Default nRight To __NTKMaxCol() // --- Define a basic datagrid control browsing the current opened Dbf @ nTop, nLeft TO nBottom, nRight BROWSE oB oB:ShowAll() NTK_SetFocus(oB:hWnd) Return(oB)
1 to 5 of 5