Path and name: C:\TESTS\Bin\mallorca1.exe (32 bits)
Size: 1,223,168 bytes
Time from start: 0 hours 0 mins 32 secs
Error occurred at: 12/24/07, 19:48:17
Error description: Error BASE/1005 No exported variable: NLASTKEY
Args:
[ 1] = U
[ 2] = N 13
Stack Calls
===========
Called from: => _NLASTKEY(0)
Called from: .\source\classes\XBROWSE.PRG => EDITGETKEYDOWN(0)
Called from: => (b)EDIT(0)
Called from: => TGET:KEYDOWN(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: => TCONTROL:HANDLEEVENT(0)
Called from: => TGET:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: => TWINDOW:ACTIVATE(0)
Called from: D:\FiveWin.20\samples\mallorca.prg => MAIN(34)
::oEditGet:bLostFocus := { | oGet, hWndFocus | If( GetWindowProcessId( hWndFocus ) != GetWindowProcessId( ::oBrw:hWnd ), ::oBrw:CancelEdit(), If( ::oEditGet != nil .and. ! ::oEditGet:lValidating, ::PostEdit(),) ) }
HB_FUNC( GETWINDOWPROCESSID ) // hWnd --> nProcessId
{
DWORD dwProcessId;
GetWindowThreadProcessId( ( HWND ) hb_parnl( 1 ), &dwProcessId );
hb_retnl( dwProcessId );
}
HB_FUNC( GETWINDOWTHREADPROCESSID ) // hWnd --> nThread
{
_retnl( GetWindowThreadProcessId( ( HWND ) _parnl( 1 ), NULL ) );
}
METHOD Edit( nKey ) CLASS TXBrwColumn
...
::oEditGet:bLostFocus := { | oGet, hWndFocus | EditGetLostFocus( oGet, hWndFocus, ::oBrw, ::oEditGet ) }
...
static function EditGetLostFocus( oGet, hWndFocus, oBrw, oEditGet )
// focus goes to another control in the same application
if oWndFromHwnd( hWndFocus ) != nil
oBrw:CancelEdit()
return nil
endif
// focus goes to another application
if GetWindowThreadProcessId( hWndFocus ) != GetWindowThreadProcessId( oBrw:hWnd )
oBrw:CancelEdit()
return nil
endif
if oEditGet != nil .and. ! oEditGet:lValidating
oBrw:PostEdit()
endif
return nil
STATIC FUNCTION Valida( oGet )
local nnew := 0
IF oGet:Value() > 6
MsgAlert( "Must be lower than 7" )
if msgget('NEW VALUE','Enter number between 1 and 6',@nnew)
if nnew > 0 .and. nnew < 7
oGet:varput( nnew )
oget:refresh()
return .t.
else
return .f.
endif
endif
return .F.
ENDIF
RETURN .T.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 55 guests