Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar not showing
Message
De
23/04/2003 08:13:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Toolbar not showing
Divers
Thread ID:
00780537
Message ID:
00780537
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform