Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2301 > unrolled thread
| Started by | Martin <spam@spam.spam> |
|---|---|
| First post | 2011-10-19 12:04 +0100 |
| Last post | 2011-10-24 17:37 -0400 |
| Articles | 7 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Waiting in a program Martin <spam@spam.spam> - 2011-10-19 12:04 +0100
Re: Waiting in a program "Willie Moore" <williem@wmconsulting.com> - 2011-10-19 07:50 -0500
Re: Waiting in a program Martin <spam@spam.spam> - 2011-10-19 14:33 +0100
Re: Waiting in a program dlzc <dlzc1@cox.net> - 2011-10-19 06:46 -0700
Re: Waiting in a program "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-10-20 01:07 +1100
Re: Waiting in a program Martin <spam@spam.spam> - 2011-10-19 15:54 +0100
Re: Waiting in a program "Jamal" <vodotnet_nospam@yahoo.com> - 2011-10-24 17:37 -0400
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2011-10-19 12:04 +0100 |
| Subject | Waiting in a program |
| Message-ID | <H8ynq.2787$Bc7.1793@newsfe20.ams2> |
Hello I need to allow the program to idle while in a loop to allow another screen within the executable to be switched to. DO WHILE TRUE // some code including the exit // wait state allowing control ENDDO If certain conditions are triggered I need to stall this loop and go to another screen in the same application and do something there. ApplicationExec(EXECWHILEEVENT) and Sleep() both don't work in this instance. Any ideas please?
[toc] | [next] | [standalone]
| From | "Willie Moore" <williem@wmconsulting.com> |
|---|---|
| Date | 2011-10-19 07:50 -0500 |
| Message-ID | <j7mh2u$es$1@speranza.aioe.org> |
| In reply to | #2301 |
Martin, Have you considered when the condition is true and you need to start another window to do it modally? Regards, Willie "Martin" wrote in message news:H8ynq.2787$Bc7.1793@newsfe20.ams2... Hello I need to allow the program to idle while in a loop to allow another screen within the executable to be switched to. DO WHILE TRUE // some code including the exit // wait state allowing control ENDDO If certain conditions are triggered I need to stall this loop and go to another screen in the same application and do something there. ApplicationExec(EXECWHILEEVENT) and Sleep() both don't work in this instance. Any ideas please?
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2011-10-19 14:33 +0100 |
| Message-ID | <OkAnq.5093$Qv2.4354@newsfe29.ams2> |
| In reply to | #2302 |
The other task will not be a modal window, but will be another open window in the application. I am looking at a quick fix to a fatal embrace locking situation in a number of places, quite a big rewrite on a saving routine to avoid it. This is not a permanent fix, the rewrite is, this is just so the user can change window and exit it while waiting for a lock. Happens occasionally at 2 sites or so, but I may want the switchable lock wait code for other uses. On 19/10/2011 13:50, Willie Moore wrote: > Martin, > > Have you considered when the condition is true and you need to start > another window to do it modally? > > Regards, > Willie > > "Martin" wrote in message news:H8ynq.2787$Bc7.1793@newsfe20.ams2... > > Hello > > I need to allow the program to idle while in a loop to allow another > screen within the executable to be switched to. > > DO WHILE TRUE > // some code including the exit > > // wait state allowing control > ENDDO > > If certain conditions are triggered I need to stall this loop and go to > another screen in the same application and do something there. > > ApplicationExec(EXECWHILEEVENT) and Sleep() both don't work in this > instance. > > Any ideas please?
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2011-10-19 06:46 -0700 |
| Message-ID | <f57f1694-9287-4853-95d4-4bb9e4bb45f2@h39g2000prh.googlegroups.com> |
| In reply to | #2301 |
Dear Martin: On Oct 19, 4:04 am, Martin <s...@spam.spam> wrote: > Hello > > I need to allow the program to idle while in a > loop to allow another screen within the executable > to be switched to. > > DO WHILE TRUE > // some code including the exit > > // wait state allowing control > ENDDO > > If certain conditions are triggered I need to > stall this loop and go to another screen in > the same application and do something there. > > ApplicationExec(EXECWHILEEVENT) and Sleep() > both don't work in this instance. > > Any ideas please? How about DO WHILE inkey(0.1) = 0 ENDDO ... with your choice of redirector based on keystroke? David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2011-10-20 01:07 +1100 |
| Message-ID | <0PAnq.4468$7r4.3105@viwinnwfe02.internal.bigpond.com> |
| In reply to | #2301 |
Martin
Is this program controlled or user controlled??
If user then it's really out of your control as windows will set focus to
whatever window/control is clicked.
I program control then in your loop
if condition_tested_for_is_true
// Abort what I'm doing in this loop
// Set focus to the other window
// Do whatever on that window and return here once it's done and
// hope like hell that the user didn't do something to these windows
// before I get back here
endif
How do you know that 'other' window will even be open??
Will/can it be minimised??
Do you expect to pass data into the 'other' window??
Why can't you have the current window do whatever it is you want done??
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2011-10-19 15:54 +0100 |
| Message-ID | <QwBnq.35$1Y4.2@newsfe18.ams2> |
| In reply to | #2305 |
See my reply to Willie It is so control can pass to another window in the application while processing pauses in another. On 19/10/2011 15:07, Stephen Quinn wrote: > Martin > > Is this program controlled or user controlled?? > > If user then it's really out of your control as windows will set focus to > whatever window/control is clicked. > I program control then in your loop > if condition_tested_for_is_true > // Abort what I'm doing in this loop > // Set focus to the other window > // Do whatever on that window and return here once it's done and > // hope like hell that the user didn't do something to these windows > // before I get back here > endif > > How do you know that 'other' window will even be open?? > Will/can it be minimised?? > Do you expect to pass data into the 'other' window?? > > Why can't you have the current window do whatever it is you want done?? > > CYA > Steve > >
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Date | 2011-10-24 17:37 -0400 |
| Message-ID | <j84lq3$1q4$1@dont-email.me> |
| In reply to | #2306 |
Martin, DoEvents() in your loop designed for this purpose. Basically it allows multi-tasking while other events are working. Jamal "Martin" wrote in message news:QwBnq.35$1Y4.2@newsfe18.ams2... See my reply to Willie It is so control can pass to another window in the application while processing pauses in another. On 19/10/2011 15:07, Stephen Quinn wrote: > Martin > > Is this program controlled or user controlled?? > > If user then it's really out of your control as windows will set focus to > whatever window/control is clicked. > I program control then in your loop > if condition_tested_for_is_true > // Abort what I'm doing in this loop > // Set focus to the other window > // Do whatever on that window and return here once it's done and > // hope like hell that the user didn't do something to these > windows > // before I get back here > endif > > How do you know that 'other' window will even be open?? > Will/can it be minimised?? > Do you expect to pass data into the 'other' window?? > > Why can't you have the current window do whatever it is you want done?? > > CYA > Steve > >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web