Hi all,
This is referring back to my original post back awhile ago and I am still having minor problem with VFP toolbar. I managed to get help regarding to docking the toolbar inside the SDI class form. Here is what I found lately.
In the activate() method of the class form I have the following.
IF TYPE('_Screen.ActiveForm.oNavigator') = 'O' AND;
!ISNULL(_Screen.ActiveForm.oNavigator)
RETURN .T.
ENDIF
SET CLASSLIB TO "Lib\HS.vcx" ADDITIVE
ThisForm.oNavigator=CREATEOBJECT("NavKeys")
ThisForm.oNavigator.Show
ThisForm.oNavigator.Dock(0)
RELEASE CLASSLIB "Lib\HS.vcx"
Why can I put this codes in the Init() method? Can't see the toolbar unless the above code is in the activate()
I noticed I ran my form, I have disabled some of the buttons in the Init() (not the class form) and that did not get fired. Why?
How can I launch my form with proper toolbar buttons properly disabled initially?
Thanks
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement