PDA

View Full Version : Cursor position.



Guest.Visitor
01-01-1995, 02:00 AM
Hello, help me. on my display program, when I hit enter, my cursor alway go to first field on the screen. I want to cursor to stay. Is this possible? If it's possible, please show me a example either ile-program and dsplay file. my e-mail is ken_yagyu@steelcoils.com. Thanks.

J.Pluta
04-09-1999, 09:59 AM
<font color=blue>On Friday, April 09, 1999, 08:11 AM, kazuo wrote: Hello, help me. on my display program, when I hit enter, my cursor alway go to first field on the screen. I want to cursor to stay. Is this possible? If it's possible, please show me a example either ile-program and dsplay file. my e-mail is ken_yagyu@steelcoils.com. Thanks. </font><hr> Look at the DSPATR(PC) keyword in DDS. <a > href="//www.zappie.net/java"><img > src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Zappie's Java Home" align="middle"></a>

Guest.Visitor
04-09-1999, 11:00 AM
Define a "CSRLOC" in your DDS record format and then, when in the RPG program, stuff the current cursor location into the row and column fields . That should hold the cursor in the same spot on the screen, no matter where the cursor was. Chris <hr><pre>A CSRLOC(S1ROW S1COL) A S1ROW 3S 0H A S1COL 3S 0H <hr> FDSPF001 CF E WORKSTN F INFDS(DSPINFDS) * display file information data structure D DSPINFDS DS * cursor row and column in binary D @CsrPos 370 371B 0 * get row and column that cursor is on after reading DSPF C @CsrPos Div 256 S1Row C Mvr S1Col </pre>