Toolbar
Posted: Mon Jan 30, 2006 10:53 am
I need a toolbar in a dialog. But it doesn't work (error-message: "cannot create window class TBAR").
Test4711() works
Test4712() doesn't work
why?
Test4711() works
Test4712() doesn't work
why?
Code: Select all
*******************
FUNCTION Test4711()
*******************
LOCAL oWnd, oBar
DEFINE WINDOW oWnd TITLE "Test"
DEFINE BUTTONBAR oBar OF oWnd
ACTIVATE WINDOW oWnd VALID .T.
RETURN NIL
*******************
FUNCTION Test4712()
*******************
LOCAL oDlg, oBar
DEFINE DIALOG oDlg TITLE "Test"
DEFINE BUTTONBAR oBar OF oDlg
ACTIVATE DIALOG oDlg VALID .T.
RETURN NIL