Skip to main content

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
I forgot to mention in my earlier post that I'm using AcuBench GT v6.1.0


Thanks

Brent

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
I forgot to mention in my earlier post that I'm using AcuBench GT v6.1.0


Thanks

Brent

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
I forgot to mention in my earlier post that I'm using AcuBench GT v6.1.0


Thanks

Brent

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
Is your accept terminating and not looping back when the thread starts?

Here's a thought. Is the control you want to shift to dependant on what happened in the thread? If not, then perhaps you could try shifting control to the entry field after the button is pressed and then check a condition in the before procedure of the entry field to start your thread. I believe, if your accept does not terminate, that it should return your focus to the entry field when the threaded window closes.

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
Hi.
BY the way

The control I'm starting with is a GRID and I'm using the
Ev-Msg-Begin-Entry event.

I've tried setting focus to an EntryField before issing the
PERFORM THREAD Acu-PricingScreen-Routine with no luck.

I cannot get focus to shift to a control other that GRID itself. the code you mention, where in AcuBench would you place it? The documention seems to always show examples of code a person not using AcuBench would use.

Brent

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
Brent,

Try MOVE 4 TO ACCEPT-CONTROL
and MOVE n TO CONTROL-ID (where n = ID of the control you want to move to)

Shaun

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
Brent,

Try MOVE 4 TO ACCEPT-CONTROL
and MOVE n TO CONTROL-ID (where n = ID of the control you want to move to)

Shaun

[Migrated content. Thread originally posted on 09 November 2004]

Hi there.


I have a program that displays another screen (within the same program) with the "PERFORM THREAD Acu-PricingScreen-Routine" statement and that works fine.

When the user closes this window I'd like to have the focus shift from the PushButton that launched it, to another control, in this case a Enrtry Field.

But when the window closed I cannot seem to get the input focus to shift? Any ideas?

????

Brent
Brent,

Try MOVE 4 TO ACCEPT-CONTROL
and MOVE n TO CONTROL-ID (where n = ID of the control you want to move to)

Shaun