General information
Title:
Toolbar not showing
Hi,
I have created a toolbar class and tried to use
it in my form but not able to get it to work.
The following code is what i put in my main prg:
_screen.AddProperty("oToolBar")
_screen.oToolBar = NewObject("testvcx2","myclass\test\testvcx2.vcx")
_screen.oToolBar.Show
_screen.oToolBar.dock(0)
DO FORM MyForm NAME Main LINKED
READ EVENTS
When i run from main.prg, the form shows but there's
no toolbar showing. When i purposely produced an error
and selected "suspend" from the error window, the
program broke out, the form was gone, and i could see
the toolbar docked at the left top corner.
More backgrounds for the problem: i am simply using a
form, not a formset. Show-window is 2(as top-level form),
window type=1 (modal), window state = 2(maximized).
In my form init() i have this command:
DO MyMenu.mpr WITH THIS,.T.
Am I missing something? Can someone help?
Thank you.
jw
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only