Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!cica!tut.cis.ohio-state.edu!pt.cs.cmu.edu!sei!dmc From: dmc@sei.cmu.edu (Dawn Cappelli) Newsgroups: comp.databases Subject: Re: screen control in INGRES E-SQL/C Message-ID: <4096@fy.sei.cmu.edu> Date: 13 Sep 89 16:44:20 GMT References: <8370@spool.cs.wisc.edu> <4094@fy.sei.cmu.edu> Reply-To: dmc@sei.cmu.edu (Dawn Cappelli) Distribution: comp Organization: Software Eng. Inst.;Carnegie-Mellon U.; Pittsburgh, PA 15213 _USA_ Lines: 29 In article <4094@fy.sei.cmu.edu> dmc@sei.cmu.edu (Dawn Cappelli) writes: >In article <8370@spool.cs.wisc.edu> beverly@ai.cs.wisc.edu (Beverly Seavey) writes: >> >> Can anyone think of a way that I could cause trim in an Ingres form >>to be highlighted in response to the user moving the cursor over a >>different piece of trim? > >Don't create trim - create *fields* with blank titles, data type character >and length of the trim, which are display only. >When the form is displayed in your ESQL/C put the text of the trim into those >fields so that they look like trim on the form. Then put a field activation on >the first "trim" field which uses the set_frs command to change the display >of the second "trim" field to reverse video. Sorry about that - if the "trim" fields are display only, you'll never hit the field activation! Instead, put the field activation on the field prior to the first "trim" field. You know that the cursor is about to pass over the first "trim" field, so use the set_frs command to change the second "trim" field display to reverse video. I hope you get the basic idea! It's kind of hard to explain in words - but we've actually created fields to hold trim for various reasons, and you can do a lot of things which you can't do otherwise, such as "dynamic" trim, display trim for some people or in certain cases, and not in others, etc. -- Dawn Cappelli dmc@sei.cmu.edu sei!dmc (412) 268-6170 This is my opinion, and doesn't necessarily reflect the opinion of the SEI.