I still have the same problem: in EXE, iNavToolbar is invisible, when run from source, it's there.
Here's what I have discovered:
the form itself is a child of ibizObjForm. CreateToolbar method gets inhereted from cbizObjForm. cToolbar = iNavToolbar.
I copied the CreateToolbar method from cbizObjForm to ibizObjForm so I can play with it.
Immediately after the line
IF goApp.oToolbars.Add(This.cToolbar)
I put WAIT WINDOW "It's been added" WAIT WINDOW loToolbar.Name
then I added ELSE to this IF and WAIT WINDOW "It's not been added"
When run from source code, I see 2 WAIT WINDOWs: It's been added and oiNavToolbar. When run from EXE, I see WAIT WINDOW It's been added and after that no second one.
So, iNavToolbar gets added to oToolbars collection in both cases (EXE and source) but goApp.oToolbars.Get can not find it afterwards (when run from EXE)?!
Does anyone have a clue what's going on here?
TIA
<i><font color="#663300">I have different problem now with iNavToolbar not being visible when program is run from EXE, but when run from source it's visible.
Would you know anything about that?
TIA,
Sal
Greetings Sal,
Nothing in particular. Things to check: 1) is the library in the project? 2) look at your errorlog to see if an error is generated by the exe. 3) run the exe in your developer environment. open form. supend. look at the toolbar collection to see if iNavBar is loaded. ox= goapp.oToolbars.Get(1)..(n) ? ox.name 4) does the form have a toolbar property. HTH </font></i>
©2001 Sal Brasko |