TJ: If I take out both then only the currently active window is zoomed but all of the windows remain visible.
If I take out only the first one: objAB.Documents(d).Windows(0).Activate then only the currently active window is zoomed. Plus that window now changes position to be the top left window. All other windows are rearranged and remain visible but un-zoomed. If I take out only the second one (used to return focus to same window as before the zooming): objAB.Documents(intCurrentDoc).Windows(0).Activate then all windows are zoomed but the top left window will be maximized which is not what I want. d > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko > Sent: Tuesday, November 27, 2007 1:09 PM > To: [email protected] > Subject: Re: [amibroker] AmiBroker 5.03.0 BETA released (OLE Problem) > > Hello, > > Please don't call Activate() and it should work. > > Best regards, > Tomasz Janeczko > amibroker.com > ----- Original Message ----- > From: "dingo" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Tuesday, November 27, 2007 6:15 PM > Subject: RE: [amibroker] AmiBroker 5.03.0 BETA released (OLE Problem) > > > > TJ: > > > > I'm experiencing a problem with OLE and new version. I use > the following > > routine (vb6) to zoom in and out of tiled windows to the > same zoom level. > > This worked fine until 5.02 or 5.03. Now when I run the routine it > > maximizes one of the windows thereby blocking the others. > > > > Set objAB = CreateObject("Broker.Application") > > For d = 0 To objAB.Documents.Count - 1 > > If objAB.Documents(d).Name = strCurrentTicker Then > > intCurrentDoc = d > > End If > > objAB.Documents(d).Windows(0).Activate > > intResult = objAB.ActiveWindow.ZoomToRange(dteFrom, dteTo) > > Next > > objAB.Documents(intCurrentDoc).Windows(0).Activate > > Set objAB = Nothing > > > > > > Any idea of how to "fix" this? > > > > TIA > > > > d > > > >> -----Original Message----- > >> From: [email protected] > >> [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko > >> Sent: Tuesday, November 27, 2007 8:23 AM > >> To: [email protected] > >> Subject: [amibroker] AmiBroker 5.03.0 BETA released > >> > >> Hello, > >> > >> A new beta version is released now: > >> http://www.amibroker.com/devlog/2007/11/27/amibroker-5030-beta > >> -released/ > >> > >> Best regards, > >> Tomasz Janeczko > >> amibroker.com > >> > >> > >> Please note that this group is for discussion between users only. > >> > >> To get support from AmiBroker please send an e-mail directly to > >> SUPPORT {at} amibroker.com > >> > >> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >> http://www.amibroker.com/devlog/ > >> > >> For other support material please check also: > >> http://www.amibroker.com/support.html > >> > >> Yahoo! Groups Links > >> > >> > >> > >> > > > > > > > > Please note that this group is for discussion between users only. > > > > To get support from AmiBroker please send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > > http://www.amibroker.com/devlog/ > > > > For other support material please check also: > > http://www.amibroker.com/support.html > > > > Yahoo! Groups Links > > > > > > > > > > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > > >
