The following sample shows that if you hit ALT-C the DIALOG is closed but the VALID of the GET is also executed while if you click on the button with the mouse the VALID is not executed (as it should be): #include "Fivewin.ch" FUNCTION MAIN() LOCAL oDlg ...
... to monitor what text is inside oMcrRtf object. It is always empty eventhough cfile contains the rtf text allright. So obviously when :copy() is executed nothing is copied to the clipboard. I'm using :loadRtf( cfile ) in other places in my code without a problem. Why won't it work in this situation? ...
I recently downloaded a sample app from René's web site. When executed it connects to remote dbfs and allows add/edit/view/browse of tables (DBFs). It is a very convinient solution to provide clients access to one common database from many remote work stations ...
... oDlg:bLostFocus := { || MsgBeep() } But i never heard the beep. Is there a known issue in FW2.4 that a bLostFocus block of a dialog will not be executed? Maybe it's not executed because the dialog lost his Focus :wink: ? Thanks for each reply. Detlef
... if we modify this class then it may affect many users applications because if we give the focus to the folder, then the VALID of a control may be executed. Thats why it seems a better way if you modify it on your local copy. Anyhow we may do some tests and see what we get. Its source code is available ...
This is the sample. Valid is never executed: #include "Fivewin.ch" #include "Tcbrowse.ch" FUNCTION MAIN() LOCAL oDlg, oBrw, cVar LOCAL bValid := { || MsgInfo(), .T. } USE C:\XHARBOUR\TEST ...
... the VALID clausule from the first combobox : VALID ( msginfo("ok") , oCbx2:aItems := { "1:One", "2:CHANGED", "3:Three" } , .T. ) BUT , THIS IS NOT EXECUTED , MSGINFO HAS NO EFFECT !!!!!!!!! Frank Try this codeblock : @ nRow, nCol COMBOBOX oCbx VAR cPav PIXEL UPDATE VALID !empty( cPav ) OF oDlg ...
... the VALID clausule from the first combobox : VALID ( msginfo("ok") , oCbx2:aItems := { "1:One", "2:CHANGED", "3:Three" } , .T. ) BUT , THIS IS NOT EXECUTED , MSGINFO HAS NO EFFECT !!!!!!!!! Frank