Code: Select all
::OnResize := {|r,c,f| ::cTxt := Str(::nHeight)}
@ 20,20 Say ::cTxt ........
bLButtonUp := {|r,c| MsgInfo(Str(::nHeight))} but it does not seem to work when the cursor in over a window corner or border.
Thanks
Rafael
Code: Select all
::OnResize := {|r,c,f| ::cTxt := Str(::nHeight)}
@ 20,20 Say ::cTxt ........
Code: Select all
#include "Fivewin.ch"
FUNCTION Main()
LOCAL oWnd
DEFINE Window oWnd From 0,0 TO 300,400 Pixel Style WS_THICKFRAME
oWnd:bLButtonUp := {|r,c,f| MsgInfo(str(r)+str(c))}
ACTIVATE Window oWnd
Return Nil
Code: Select all
::bResize := {|t,w,h| ::nHeight := h}
Code: Select all
#include "FiveWin.ch"
#define WM_EXITSIZEMOVE 0x0232
function Main()
local oWnd := TMyWindow():New()
oWnd:Activate()
return nil
CLASS TMyWindow FROM TWindow
CLASSDATA lRegistered AS LOGICAL
METHOD HandleEvent( nMsg, nWParam, nLParam )
ENDCLASS
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow
if nMsg == WM_EXITSIZEMOVE
MsgBeep()
endif
return Super:HandleEvent( nMsg, nWParam, nLParam )