by Otto » Fri Aug 31, 2007 4:52 pm
I tried by reference but with no success.
Regards
Otto
#INCLUDE "BOX.CH"
#INCLUDE "FILEIO.CH"
#INCLUDE "FIVEWIN.CH"
#INCLUDE "FOLDER.CH"
#INCLUDE "INKEY.CH"
#INCLUDE "REPORT.CH"
function Main()
LOCAL oWnd
DEFINE WINDOW oWnd from 1,1 TO 30,60 TITLE "TEST";
MENU bldMenu()
ACTIVATE WINDOW oWnd
return nil
function bldMenu()
LOCAL oMenu
MENU oMenu
MENUITEM "Start" ;
ACTION f_code()
ENDMENU
return oMenu
func f_code
LOCAL oDlg
LOCAL ok := .f.
DEFINE DIALOG oDlg From 1,5 to 20,65 TITLE "Test Dialog with Buttonbar"
ACTIVATE DIALOG oDlg ;
ON INIT PlaceButtonBar( oDlg ,@OK )
if OK=.t.
msgInfo("OK")
else
msgInfo("not OK")
endif
return nil
function PlaceButtonBar( oDlg , OK)
local oBar
DEFINE BUTTONBAR oBar size 20,20 of oDlg
DEFINE BUTTON FILE "E4.bmp" OF oBar ;
ACTION (OK:=.T.,oDlg:END()) ;
MESSAGE "Neuen Artikel eingeben"
return nil