Hello,
There is no reason to "refresh" param window because it is
VERY BAD IDEA.
Allowing this would lead to lockups /freezes when your
formula attempted for example to remove
the parameter which user actually plays with.
And Params() should NEVER be placed in conditional
statements as they are read only ONCE
(when you Apply the formula or make
any changes).
Every GUI update in Windows is slow compared
to AFL execution times and every GUI refresh
would slow down AFL execution, while AFL execution time is
always priority.
The are three words to AmiBroker design: speed, speed,
speed.
Best regards,
Tomasz
Janeczko
amibroker.com
----- Original Message -----
Sent: Tuesday, February 27, 2007 10:38
PM
Subject: Re: [amibroker] Refresh
Parameter Window
I like your answer Thomasz but that does not
solve my problem. Of course when I am not allowed to put Params within
conditional statements then there is no reason for refreshing the Param
window. So what you'are saying is that I
cannot refresh the Param window. Is that correct ? Or is it also impossible
to use the Param instruction within a conditional statement for other
reasons than refreshing ? Because I checked that and indeed had problems
with the Param variable within the conditional statement ...
You understand of course my underneath
mentioned problem from a logical point of view. Is there a way to get this
coded in AFL ?
Best regards,
Ton Sieverding.
----- Original Message -----
Sent: Tuesday, February 27, 2007
10:16 PM
Subject: Re: [amibroker] Refresh
Parameter Window
Hello,
Parameters must not be put inside conditional
statements.
Best regards,
Tomasz
Janeczko
amibroker.com
----- Original Message -----
From:
"amsiev" <ton.sieverding@scarlet.be>
To:
<amibroker@xxxxxxxxxps.com>
Sent:
Tuesday, February 27, 2007 9:42 PM
Subject: [amibroker] Refresh
Parameter Window
>I want to refresh the Parameter Window after
selection of HLType with
> ParamToggle. If HLType equals "Fix" I
want the Parameter Window to show
> me the "HL Percent?" selection.
Else the Parameter Window should not
> show the "HL Percent"
selection. In order to get the new or better
> refreshed Parameter
Window after the ParamToggle selection I need a
> REFRESH function
that I could not find in AFL. Does anybody knows if
> this function
exists ? It should be something like PARAMREFRESH. But I
> cannot
find it ...
>
> // Define High-Low parameters
> HLType
= ParamToggle("HL Random or Fix?", "Random|Fix", 0);
> if
(HLType==0)
> HLPercent = Param("HL
Percent?",0,0,100,1);
>
> Best regards,
> Ton
Sieverding.
>
>
>
>
> 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
>
>
>
>
>