OK and thanks ...

Ton.

  ----- Original Message ----- 
  From: Tomasz Janeczko 
  To: [email protected] 
  Sent: Monday, July 23, 2007 1:51 PM
  Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released



  Hello,

  That's exactly the point - you can not "stop" the execution of formula in 
real-time application,
  because it will stop responding.
  That's why Popup WIndow is opened in asynchronous (non-modal) and does not 
stop execution.

  To provide "single-step" debugging and stopping the formula execution in the 
middle you 
  would need to run EACH formula in completely separate thread. Only that way 
real-time application
  would be able to continue working with one tread stopped in the middle 
waiting for the user to push the button.

  Best regards,
  Tomasz Janeczko
  amibroker.com
    ----- Original Message ----- 
    From: Ton Sieverding 
    To: [email protected] 
    Sent: Monday, July 23, 2007 12:32 PM
    Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released


    Modal argument is correct of course because MessageBox() is openend in Modal
    mode. But what if the Form of the MessageBox() is being set to Modeless or 
    'Non Modal' ? Isn't that possible ? More or less the same you did with 
PopupWindow.
    I am not talking about the usual MessageBox() function of course because 
then
    you will have your Modal problem  ...

    _TRACE works fine but what if I want to do a 'step by step' debugging ? So 
that
    I can stop the program at a certain point and see what a certain variable 
gives me.
    Something I cannot do now with the new PopupWindow function. At least that's
    what I think. Let's say I've put a PopupWindow in a loop and I want to show 
the values
    of a variable sequentially. Something like ...

    y0   = LastValue(Trough(L,percent,firstpointL)); 
    y1   = LastValue(Trough(Ref(L,-1),percent,1)); 

    for( i = 1; i < BarCount AND y0 >= y1; i++ ) 
    {    
          firstpointL++;    
          y0=LastValue(Trough(L,percent,firstpointL)); 

          //_TRACE("y0="+WriteVal(y0,1.2)+" "+   "y1="+WriteVal(y1,1.2));    
          PopupWindow("Y0 :"+WriteVal(y0),"Debugging", 10, 10, 10); 
    } 
    ETC.

    By hitting the CLOSE button in the PopupWindow it gives me the values. But 
the 
    program is not stopping at the point where I have put the PopupWindow in 
the 
    code. If this is correct, I cannot do a step by step debugging. Function 
should
    be available in DebugView. But to my knowledge it isn't and probably for a
    good reason ...

    Regards, Ton.

    ----- Original Message ----- 
      From: Tomasz Janeczko 
      To: [email protected] 
      Sent: Monday, July 23, 2007 10:03 AM
      Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released



      Ton,

      Modal Message Box is no-no because it will lock execution until you press 
the button
      - not something what you would like to do in REAL TIME charting 
application.

      PopupWindow is much different because it is ASYNCHRONOUS (non-modal).

      For debugging - use _TRACE - it is much more effective than message boxes.

      AmiBroker also provides superior methods for providing input from GUI,
      by means of Param... functions. They are asynchronous (non-modal) as well
      and much more comfortable than modal dialogs.

      Best regards,
      Tomasz Janeczko
      amibroker.com
        ----- Original Message ----- 
        From: Ton Sieverding 
        To: [email protected] 
        Sent: Monday, July 23, 2007 9:41 AM
        Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released


        Functions that are standard stuff in other programming languages - like
        MessageBox() - for me should be available in AFL also. There are many
        occasions where I will need it. Although I would like to have the full 
        functionality of MessageBox() in the PopupWindow and not just the Close 
        button,  it's a good start. If you want an example look to the readme 
for
        release 4.97.0 of AB. It's what it says that it is, a Popup Window. So
        where ever you want a text to popup without forcing the user to take 
action
        this function is helpful. You may also use it for debugging purposes, 
just to 
        give you an example where I am using MessageBox() quite often ...

        Regards, Ton.

          ----- Original Message ----- 
          From: Joe Landry 
          To: [email protected] 
          Sent: Sunday, July 22, 2007 2:11 PM
          Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released



          Herman and Ton - Is this function especially helpful in real-time 
automated trading?  Would
          you give us an example on how you find it helpful? 

          Regards
          Joe 
            ----- Original Message ----- 
            From: Ton Sieverding 
            To: [email protected] 
            Sent: Sunday, July 22, 2007 1:29 AM
            Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released



            I agree. That's one of the good goodies I was waiting for ...

            Regards, Ton.

              ----- Original Message ----- 
              From: Herman 
              To: Tomasz Janeczko 
              Sent: Sunday, July 22, 2007 12:59 AM
              Subject: Re: [amibroker] AmiBroker 4.97.0 BETA released



              Thank you for the Popup window Tomasz,




              it will be used extensively!!!




              best regards,

              herman




              Saturday, July 21, 2007, 11:23:18 AM, you wrote:




              > Hello,




              > AmiBroker 4.97.0 BETA has just been released:




              > 
http://www.amibroker.com/devlog/2007/07/21/amibroker-4970-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




              >     http://groups.yahoo.com/group/amibroker/




              >     Individual Email | Traditional




              >     http://groups.yahoo.com/group/amibroker/join

              >     (Yahoo! ID required)




              >     mailto:[EMAIL PROTECTED] 

              >     mailto:[EMAIL PROTECTED]




              >     [EMAIL PROTECTED]




              >     http://docs.yahoo.com/info/terms/

              >  






   

Reply via email to