Amazing but true...only 2 lines of AFL code allow you to load any layout you want.  But where is the documentation? 
 
Thanks so much dingo!
 

AB = CreateObject("Broker.Application");

Test=AB.LoadLayout("C:\\yourlayoutdirectory\\yourlayout.awl");

 

 

----- Original Message -----
From: dingo
Sent: Wednesday, June 28, 2006 4:25 PM
Subject: RE: [amibroker] Load Layout from AFL

Ooops!
 
Can you tell I was distracted?   8-)
 
Dim oAB
 
Const cstLayoutDir = "C:\Program Files\Amibroker\Layouts\"
 
Set oAB = CreateObject("Broker.Application")
oAB.Visible = True
 
oAB.LoadLayout(cstLayoutDir + "Daily Index Monitor.awl")
 
Set oAB  = Nothing
 
That should be more in-line with your request.
 
d


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of cstrader232
Sent: Wednesday, June 28, 2006 2:49 PM
To: [email protected]
Subject: Re: [amibroker] Load Layout from AFL

Dingo...could you point me in the right direction to write a script to load a layout?  I'm familiar with the objects guide http://www.amibroker.com/guide/objects.html.  But I don't see how to use it to open a layout. 
 
tia
 
 
----- Original Message -----
From: dingo
Sent: Wednesday, June 28, 2006 11:22 AM
Subject: RE: [amibroker] Load Layout from AFL

Yes it does, easily done from a script
 
d


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Terry
Sent: Wednesday, June 28, 2006 9:49 AM
To: [email protected]
Subject: RE: [amibroker] Load Layout from AFL

There must be a way since BatMan does it, although from a script I think.

--

Terry

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of cstrader232
Sent: Wednesday, June 28, 2006 07:38
To: [email protected]
Subject: Re: [amibroker] Load Layout from AFL

 

Yes, that's what I was afraid of.  Really too bad in a way because I have automated adding symbols to the charts.  But when I do that the layouts get messed up (for some reason the symbols are assigned to charts alphabetically, so when new ones are added, everything gets switched).  So I then have to manually reload a prior layout.  Anyone found a solution to this?  Thanks!

 

 

__._,_.___

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 other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to