At 12:39 PM 1/19/09 -0500, you wrote: > > For multiple reports I need the default preview toolbar to let users zoom. > > However, I have my own tricky little "toolbar" to let users respond to the > > preview; it has buttons to go to the next report, cancel previewing, >cancel > > printing. It's not a real toolbar, it's a modeless always-on-top form that > >Why be tricky and use a modeless always-on-top form? Just use the "real" >toolbar and modify it to add the buttons and functionality you want. You can >use an Extension Handler to add buttons to the preview's toolbar.
Well, it got weirder before it got better. There were two separate issues. 1. I discovered that the new object-assisted report toolbar would not appear with the preview form for this particular report no matter what I did. For some reason it was created but not made visible. I had to insert code to hook it from _Screen.Forms and call its Show(). I still don't know why that happens for this report but not others. 2. The missing toolbar error was caused because my code was calling RELEASE WINDOW on the new preview window, which is a form, not a "DEFINE WINDOW" window. Doing that bypassed its Release() method, which contains code to store the toolbar state. When the preview was called for the next report in the set, the preview window, not having previously stored the toolbar's state as nonexistant, expected the toolbar to exist and tried to set its properties. (This seems dumb to me; if any number of errors occurs that causes the preview window to close unexpectedly, the resource file is going to get screwed up--but what do I know?) As for using an Extension Handler to build all my stuff into the toolbar--that looks like a lot more work right now than I have time for. Maybe in a later, major new release... Thanks again, Cathy, for helping me think this through. Ken www.stic-cil.org _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

