... VarPut(uVal)`**: Sets the value of the control.
- **`VarGet()`**: Gets the value of the control.
#### **System Commands**
- **`SysCommand(nType, nLoWord, nHiWord)`**: Handles system commands like Alt+key combinations.
- **`HandleEvent(nMsg, nWParam, nLParam)`**: Handles various Windows messages ...
Search found 31 matches: nloword
Searched query: nloword
- Sat Jan 18, 2025 10:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 4829
- Mon Oct 19, 2020 4:59 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Beep on ALT-key
- Replies: 14
- Views: 2270
Re: Beep on ALT-key
Enrico, I will remember that we changed for a similar case
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TControl
case nMsg == WM_SYSCOMMAND
return ::SysCommand( nWParam, nLoWord( nLParam ), nHiWord( nLParam ) )
Best regards,
Otto
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TControl
case nMsg == WM_SYSCOMMAND
return ::SysCommand( nWParam, nLoWord( nLParam ), nHiWord( nLParam ) )
Best regards,
Otto
- Thu Aug 31, 2017 2:56 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda DLL
- Replies: 24
- Views: 8577
Re: Ayuda DLL
... FIVEHX.LIB|DDE
Error: Unresolved external '_HB_FUN_MSGALERT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DDE
Error: Unresolved external '_HB_FUN_NLOWORD' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DDE
Error: Unresolved external '_HB_FUN_DDEGETCOMMAND' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
Error: Unresolved external '_HB_FUN_MSGALERT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DDE
Error: Unresolved external '_HB_FUN_NLOWORD' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DDE
Error: Unresolved external '_HB_FUN_DDEGETCOMMAND' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
- Wed Mar 02, 2016 4:54 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Dialogo - se puede capturar tecla Enter?
- Replies: 3
- Views: 571
Re: Dialogo - se puede capturar tecla Enter?
... de esta forma para comprobarlo:
METHOD Command( nWParam, nLParam ) CLASS TDialog
local oWnd, nNotifyCode, nID, hWndCtl, oCtrl
nNotifyCode = nHiWord( nWParam )
nID = nLoWord( nWParam )
hWndCtl = nLParam
if nWParam == 1
MsgInfo( "IDOK" )
endif
...
y verás como se muestra ese mensaje.
METHOD Command( nWParam, nLParam ) CLASS TDialog
local oWnd, nNotifyCode, nID, hWndCtl, oCtrl
nNotifyCode = nHiWord( nWParam )
nID = nLoWord( nWParam )
hWndCtl = nLParam
if nWParam == 1
MsgInfo( "IDOK" )
endif
...
y verás como se muestra ese mensaje.
- Sat Aug 16, 2014 11:25 am
- Forum: EasyReport, EasyDialog y EasyPreview
- Topic: El ratón al moverse deja "rastro" en las reglas
- Replies: 34
- Views: 20575
Re: El ratón al moverse deja "rastro" en las reglas
... TME_LEAVE )
...
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS ...
if nMsg == WM_MOUSELEAVE
return ::MouseLeave( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
endif
...
METHOD MouseLeave( nRow, nCol, nFlags ) CLASS ...
::lMOver = .F.
::Refresh()
return nil
Lo único que como ...
...
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS ...
if nMsg == WM_MOUSELEAVE
return ::MouseLeave( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
endif
...
METHOD MouseLeave( nRow, nCol, nFlags ) CLASS ...
::lMOver = .F.
::Refresh()
return nil
Lo único que como ...
- Thu Jul 17, 2014 7:39 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: SetGetColorFocus
- Replies: 12
- Views: 1918
Re: SetGetColorFocus
... hWnd, TME_LEAVE )
Desde el método HandleEvent( nMsg, nWParam, nLParam )
if nMsg == WM_MOUSELEAVE
return ::MouseLeave( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
endif
Y en MouseLeave() se restaura el color que desees.
Busca por WM_MOUSELEAVE en las Classes de FWH y verás como lo ...
Desde el método HandleEvent( nMsg, nWParam, nLParam )
if nMsg == WM_MOUSELEAVE
return ::MouseLeave( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
endif
Y en MouseLeave() se restaura el color que desees.
Busca por WM_MOUSELEAVE en las Classes de FWH y verás como lo ...
- Sat Oct 26, 2013 9:44 am
- Forum: Off Topic / Otros temas
- Topic: "Snap" for Clipper
- Replies: 7
- Views: 9964
Re: "Snap" for Clipper
... PRG 2198 2201 2203 2209 2211 2212 2218 2343 2346 2348
2349 3387 3394 3396 3397 3399 3401 3402 4020 4025
4027
NLENTOOLTIP
WINDOW.PRG 3592
NLOWORD() (function in ?)
WINDOW.PRG 1379 1382 2719 2789
NLPARAM
WINDOW.PRG 499 517 541 541 637 638 655 737 738 807
808 864 866 867 1352 1355 1372 ...
2349 3387 3394 3396 3397 3399 3401 3402 4020 4025
4027
NLENTOOLTIP
WINDOW.PRG 3592
NLOWORD() (function in ?)
WINDOW.PRG 1379 1382 2719 2789
NLPARAM
WINDOW.PRG 499 517 541 541 637 638 655 737 738 807
808 864 866 867 1352 1355 1372 ...
- Wed Feb 27, 2013 12:07 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Capturar mensajes
- Replies: 8
- Views: 877
Re: Capturar mensajes
Puedes usar las funciones nLoWord( nLParam ) y nHiWord( nLParam ) de FWH
- Sat Jul 28, 2012 3:56 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: New FiveForm.prg in FWH 12.07
- Replies: 3
- Views: 1337
Re: New FiveForm.prg in FWH 12.07
... local cPrg := ""
local nFactorX, nFactorY
local cTop, cLeft, cWidth, cHeight
DEFAULT lDlgUnits := .F.
nFactorX = If( lDlgUnits, 4 / nLoWord( GetDlgBaseUnits() ), 1 )
nFactorY = If( lDlgUnits, 8 / nHiWord( GetDlgBaseUnits() ), 1 )
::CoorsUpdate()
cTop = LTrim( Str( Int( ::nTop ...
local nFactorX, nFactorY
local cTop, cLeft, cWidth, cHeight
DEFAULT lDlgUnits := .F.
nFactorX = If( lDlgUnits, 4 / nLoWord( GetDlgBaseUnits() ), 1 )
nFactorY = If( lDlgUnits, 8 / nHiWord( GetDlgBaseUnits() ), 1 )
::CoorsUpdate()
cTop = LTrim( Str( Int( ::nTop ...
- Mon Oct 17, 2011 2:38 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Extension to TFolderEx
- Replies: 1
- Views: 686
Re: Extension to TFolderEx
... Image ( JPG ) :
http://www.pflegeplus.com/pictures/SFBrush2.jpg
LOCAL PixelX := MulDiv( oControl:nWidth(), nLoWord( GetDlgBaseUnits() ), 4 )
LOCAL PixelY := MulDiv( oControl:nHeight(), nHiWord( GetDlgBaseUnits() ), 8 )
...
...
DEFINE IMAGE oImage FILE cImage ...
http://www.pflegeplus.com/pictures/SFBrush2.jpg
LOCAL PixelX := MulDiv( oControl:nWidth(), nLoWord( GetDlgBaseUnits() ), 4 )
LOCAL PixelY := MulDiv( oControl:nHeight(), nHiWord( GetDlgBaseUnits() ), 8 )
...
...
DEFINE IMAGE oImage FILE cImage ...
- Sun Sep 18, 2011 6:45 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Dialog Coordinates
- Replies: 14
- Views: 4903
Re: Dialog Coordinates
http://msdn.microsoft.com/en-us/library/ms645475(VS.85).aspx
baseunitX = nLoWord( GetDlgBaseUnits() )
baseunitY = nHiWord( GetDlgBaseUnits() )
Therefore, to convert dialog template units to pixels, use the following formulas:
pixelX = MulDiv(templateunitX, baseunitX, 4 ...
baseunitX = nLoWord( GetDlgBaseUnits() )
baseunitY = nHiWord( GetDlgBaseUnits() )
Therefore, to convert dialog template units to pixels, use the following formulas:
pixelX = MulDiv(templateunitX, baseunitX, 4 ...
- Sun Jan 23, 2011 9:07 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Minimize Dialog and Window too
- Replies: 25
- Views: 5455
Re: Minimize Dialog and Window too
... prg in this method
METHOD New( nPort, oWnd ) CLASS TSocket
if oWnd != nil
oWnd:bSocket = { | nSocket, nLParam | ::HandleEvent( nSocket,;
nLoWord( nLParam ), nHiWord( nLParam ) ) }
WSAAsyncSelect( ::nSocket, oWnd:hWnd, WM_ASYNCSELECT,;
nOr( FD_ACCEPT, FD_OOB, FD_READ, FD_CLOSE, FD_CONNECT ...
METHOD New( nPort, oWnd ) CLASS TSocket
if oWnd != nil
oWnd:bSocket = { | nSocket, nLParam | ::HandleEvent( nSocket,;
nLoWord( nLParam ), nHiWord( nLParam ) ) }
WSAAsyncSelect( ::nSocket, oWnd:hWnd, WM_ASYNCSELECT,;
nOr( FD_ACCEPT, FD_OOB, FD_READ, FD_CLOSE, FD_CONNECT ...
- Tue Nov 09, 2010 7:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Checkbox still strange
- Replies: 34
- Views: 7060
Re: Checkbox still strange
... and. ( ::IsKindOf( "TRADIO" ) .or. ::IsKindOf( "TCHECKBOX" ) )
::oWnd:Refresh( .f. )
endif
return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
The changes to WM_UPDATEUISTATE and the addition of WM_LBUTTONUP are fine. Howevever, with LBUTTONDOWN I'm having to ...
::oWnd:Refresh( .f. )
endif
return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
The changes to WM_UPDATEUISTATE and the addition of WM_LBUTTONUP are fine. Howevever, with LBUTTONDOWN I'm having to ...
- Sun Aug 01, 2010 5:07 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: TRANSPARENCIA SAY Y CHECKBOX fallan al presionar tecla alt
- Replies: 16
- Views: 4089
Re: TRANSPARENCIA SAY Y CHECKBOX fallan al presionar tecla alt
... lTransparent .and. ::IsKindOf( "TRADIO" ) .or. ::IsKindOf( "TCHECKBOX" )
::oWnd:Refresh()
endif
return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
case nMsg == WM_LBUTTONUP
if Valtype( ::lTransparent ) = "L" .and. ::lTransparent .and. ::IsKindOf( "TRADIO" ) .or ...
::oWnd:Refresh()
endif
return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
case nMsg == WM_LBUTTONUP
if Valtype( ::lTransparent ) = "L" .and. ::lTransparent .and. ::IsKindOf( "TRADIO" ) .or ...
- Tue May 25, 2010 7:16 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Como se crea una CLASE para dibujar líneas.
- Replies: 8
- Views: 2064
Re: Como se crea una CLASE para dibujar líneas.
... METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TSLines
If nMsg == WM_LBUTTONDOWN .and. ::lDrag
Return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
EndIf
If ( ::lDrag .and. nMsg == WM_NCHITTEST )
Return DefWindowProc( ::hWnd, nMsg, nWParam, nLParam )
EndIf
Return ...
If nMsg == WM_LBUTTONDOWN .and. ::lDrag
Return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )
EndIf
If ( ::lDrag .and. nMsg == WM_NCHITTEST )
Return DefWindowProc( ::hWnd, nMsg, nWParam, nLParam )
EndIf
Return ...