Trapping the change of a time spin box so a second spin box can be raised by seven hours (Reported, not reproduced)

Applies to: posted in the Clarion 8 group; both the ABC and the Legacy chains were covered by the replies. The controls sat on a report window that uses PAUSE.

Problem as reported

Two time spin boxes sit on a window. When the first one changes, the second should be increased by seven hours. The poster tried all the embed points listed for the control and put a STOP in them; none fired when spin box 1 was changed.

What the thread found

  • A poster suggested EVENT:NewSelection. The original poster had tried that, and all embed points except "All Events".
  • Another asked whether the Immediate property was on; it was.
  • For ABC, a reply said to put this in the embeditor at ThisWindow.TakeEvent, as soon as possible after its CODE statement (in Legacy, right after the ACCEPT statement):
IF FIELD() = ?MyTimeSpinner AND EVENT() = EVENT:NewSelection
  CHANGE(?TheOtherControl, SomeValue)
END
  • A third poster said the IMM attribute should not be needed: double-click the control in the window designer, which opens the control's own events, and use EVENT:NewSelection there.
  • The original poster reported it still did not work and mentioned that the controls are on a report window using PAUSE. The poster who gave the TakeEvent code had never done that and asked for criteria in a separate window instead.
  • One more poster asked whether the event was not firing or the second box was simply not showing the new value, and suggested a DISPLAY of the second spin box. The thread does not record a reply.

Caveats

  • No answer was confirmed; the report window with PAUSE was the only unusual detail.
  • The DISPLAY suggestion was left untried in the thread.

Today (2026)

Not reproduced. This entry records a 2012 report. If you have a spin box on a report window that does not fire EVENT:NewSelection on a current build, or DISPLAY fixes it, say so and the entry gets updated or closed.

Sources: the original poster (May 2012, the question), Mike H. (May 2012), Tony T. (May 2012), Lee W. (May 2012), Sean H. (May 2012) in sv.clarion.clarion8.