>The default toolbar, I never want to see it, even during program startup. I want the program to open, go to full screen, and show my toolbar only. It shows my toolbar, but only after seeing VFP's during screen open and maximizing. (By the way, is the problem of VFP not opening in a maximized state fixed in 5.0?)
SCREEN=OFF in CONFIG.FPW and _screen.Visible=.T. after the setup has been finished will do what you want.
Not opening in maximing is not a problem. This is up to you to decide how you want to open a window. You can fire it up maximized using _screen.WindowState=2 or use the configuration from the current user from the last time he went into the system. There is no standard on how to open a window. It's up to you to decide. You can also punch the maximize property at the icon level.
You can use this code to scan the Visual FoxPro toolbars and take action on them. This comes from the Tastrade sample.
DIMENSION This.aToolBars[11,2]
This.aToolBars[1,1]='Form Designer'
This.aToolBars[2,1]='Standard'
This.aToolBars[3,1]='Layout'
This.aToolBars[4,1]='Query Designer'
This.aToolBars[5,1]='View Designer'
This.aToolBars[6,1]='Color Palette'
This.aToolBars[7,1]='Form Controls'
This.aToolBars[8,1]='Database Designer'
This.aToolBars[9,1]='Report Designer'
This.aToolBars[10,1]='Report Controls'
This.aToolBars[11,1]='Print Preview'
FOR I=1 TO ALEN(This.aToolBars,1)
This.aToolBars[I,2]=WVISIBLE(This.aToolBars[I,1])
IF This.aToolBars[I,2]
HIDE WINDOW (This.aToolBars[I,1])
ENDIF
NEXT