Automatic carriage return after a popup selection (OpenInsight Specific)
At 03 DEC 1998 09:55:06AM Ruben Martinez LIDASA wrote:
I am migrating an application from Adv. Rev. 3.0 to
OI 3.5. In the adv rev. application, after the user
selects a popup option, the cursor moves automatically
to the next prompt with an automatic carriage return.
Has anybody implemented in OI the above
functionality?
P.D.
I tried the 'FOCUS' property but it doesn't function
properly with multipart key forms.
At 03 DEC 1998 10:34AM Oystein Reigem wrote:
Ruben,
I have no experience with multi-part keys. This is just a long shot:
<code> rv=Set_Property("SYSTEM", "FOCUS", @Window:".EDITLINE")</code>
is sometimes better than
<code> rv=Set_Property(@Window:".EDITLINE", "FOCUS", True$)</code>
- Oystein -
At 03 DEC 1998 12:21PM Nick Stevenson wrote:
This is something you generally have to do in script - there is not a Quick Event option for it. Execute the popup in the options event and if the user selected a row, populate your control, send a lostfocus event to that control, then set the focus to the next control. If the control was the last of the primary key controls, the row will be read and your form populated. If your popup returns the row id of a multi-part key, simply parse that row id into the controls and follow the above or send your read event directly.
At 03 DEC 1998 01:39PM Greg James, ISIS, Inc. wrote:
Oystein,
I have experienced some strange problems when using
Set_Property(@Window:".EditLine","FOCUS",TRUE$)
I have never tried the other method that you suggested of
Set_Property("SYSTEM", "FOCUS", @Window:".EDITLINE")
What is the difference between the two?
[email protected] onmouseover=window.status=email greg james;return(true)"
At 04 DEC 1998 05:40AM Oystein Reigem wrote:
Greg,
It was Don Bakke who once adviced me to use the latter when a GOTFOCUS event of mine wouldn't run. See this posting. But I don't know if there are other differences.
- Oystein -