Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar not showing
Message
From
23/04/2003 08:13:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Toolbar not showing
Miscellaneous
Thread ID:
00780537
Message ID:
00780537
Views:
63
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
Map
View

Click here to load this message in the networking platform