>Hi,
> How can i add toolbar to top level form using Screen designer?
Hi John,
You can't do it in the screen designer but you can add it at runtime. Here're the steps.
First, create a custom property of the form to hold the reference, and initialize to .NULL.. Second, in the form's .Activate event add something like this:
IF TYPE('ThisForm.oToolbar') # 'O'
SET CLASSLIB TO Mylibrary
WITH ThisForm
.oToolbar = CREATEOBJECT("MyToolbar")
.oToolbar.Dock(0)
.oToolbar.Show
ENDWITH
RELEASE CLASSLIB Mylibrary
ENDIF
George
Ubi caritas et amor, deus ibi est