Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Animation windows Date: Wed, 4 Apr 2018 17:50:26 +0200 Lines: 63 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net rZJVALQUBalln4mq87H4XQc1ijjIZc8vvyQm0RR7Wgm/i3nwE= Cancel-Lock: sha1:yrExLE5lBgck5h9hBMLBweQiA5o= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 Xref: csiph.com comp.lang.clipper.visual-objects:11527 Hi Paul, > The hourglass will NOT tumble while a file is being re-indexed. When > skipping to the next re-index however, it will tumble an quarter and then > be static again while file 2 is being re-indexed and so on. I´m using Progressbars only, but there would be the same problem: How to update the progressbar while the index is created ? This can be achieved by filling the param 5 and 6 of the server method SetorderCondition(). 5. Param The code block that is evaluated for every record that is processed, or as specified below. This code block allows the application to intercede during the order creation, which might be quite lengthy; it might be used to update the screen, for example, showing progress on a thermometer-type display or in the status bar. 6. Param The numeric expression that modifies the number of times is evaluated. This argument offers a performance enhancement by evaluating the condition for every nth record instead of for every record ordered. To step through every record, specify a value of 0 or omit the parameter. some dummy code: // modeless Dialog class YourAniDlg inherit Dialogwindow // This method is called during the index creation every 32 records Method Update() class YourAniDlg call doEvents() or ApplicationExec (execwhileevent) to update the screen / animation return true --------------- oDlg := YourAniDlg{ self } oDlg:Show() ... ... // every 32 Records oDlg:Update() is called oSrv:SetOrderCondition ( ,,,, { || oDlg:Update() } , 32 ,,,,,,,,,) oSrv:createOrder (.......) regards Karl-Heinz