From: fukuda@bell.flab.fujitsu.co.jp (Fukuda Kenichi)
Newsgroups: fj.windows.x
Subject: XView's text window with a scroll bar
Date: 4 Sep 92 09:27:44 GMT
Distribution: fj
Organization: Fujitsu Laboratories Ltd., Kawasaki, Japan.

$@J!(J$@ED$H?=$7$^$9(J. XView$@$K$D$$$F<ALd$G$9!%(J

-------------------------< $@0zMQ3+;O(J >-------------------------
$@=i$a$^$7$F!#BeM}%]%9%H$7$F$b$i$C$F$$$k@6?e!w#F#C#S$G$9!#:G6a!"(J
$@#X#v#i#e#w$rMQ$$$?%&%#%s%I%&%7%9%F%`$N(J$@3+H/$r3+;O$7$?!"%&%#%s%I(J
$@%&=i?4<T$G$9!#(J

$@#X#v#i#e#w$K4X$7$F!"$*J9$-$7$?$$$3$H$,$"$j$^$9!#(J

$@:#$^$GEjF~(J$@$7$?%3%^%s%I$rJ]B8$7$F$$$k%U%!%$%k!J(JUNIX$@$N(Jhistory$@$HF1(J
$@MM!K$r%F%-%9%H%5%V%&%#%s%I%&$KI=<($7$h$&$H$7$F$$(J$@$^$9!#EvA3!"%U%!(J
$@%$%k$N3F9T!J%l%3!<%I!K$O!"EjF~$7$?%3%^%s%I%$%a!<%8$G$9!#(J

$@%F%-%9%H%5%V%&%#%s%I%&$NBg(J$@$-$5!J2#I}!K$O!"%W%m%0%i%`$N;EMM>e@)8B(J
$@$,$"$j!"!!0lJ}!"%3%^%s%I9T$ND9$5$N@)8B$O!"%F%-%9%H%5%V%&%#%s%I(J$@%&(J
$@$N2#I}$r>e2s$j$^$9!#$D$^$j!"%F%-%9%H%5%V%&%#%s%I%&$N0l9T$KF~$j$-(J
$@$i$J$$%l%3!<%I$,$"$jF@$k$o$1$G$9!#(J

$@$H$3$m$G!"%F%-%9%H%5%V%&%#%s%I%&$NB0@-$K(JTEXTSW_LINE_BREAK_ACTION
$@$H$$$&$N$,$"$j!"%G%U%)%k%H$G$O$3$l(J$@$,(JTEXTSW_WRAP_AT_CHAR $@$H$$$&CM(J
$@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%I%&$K2#%9%/%m!<%k%P!<$OIU$+$J$$$s$8$c$J$$$+$H(J
$@$$$&1=!J!)(J$@!K$r<*$K$7$?$3$H$,$"$k$N$G$9$,!"K\Ev$N$H$3$m$O$I$&$J$N(J
$@$G$7$g$&$+!#$I$J$?$+8fB8CN$G$7$?$i65$($F$/$@$5(J$@$$!#(J

$@%-%c%s%P%9$KJ8;zNs!J%F%-%9%H!K$r%$%a!<%8!J3(!K$H$7$FIA$$$F$d$k$H!"(J
$@%9%/%m!<%k$9$k$s$8$c$J$$$+$H(J$@$$$&%"%I%P%$%9$bD:$$$?$N$G$9$,!"$=$&(J
$@$9$k$H(J3)$@$N=hM}$,$+$J$jJ#;($K$J$k$N$G$O$J$$$+$H$$$&4mW|$,$"$j!J%F(J
$@%-%9%H$rIA$/$3$H<+BN3Z$G$O$J$$!K!"$^$@F'$_@Z$l$^$;$s!J#X#v#i#e#w(J
$@%l%Y%k$N4X?t$G$O5-=R$G$-$J$$!*!)!K!#(J

$@$=$3$G!"$;$a$F%F%-%9%H%5%V%&%#%s%I%&$H2#%9%/%m!<%k%P!<$N4X78$@$1(J
$@$G$bL@3N$K$7$?$$$H;W$C$F$$$^$9!#(J

$@!]!]!]!]!]!]!]!](J
$@8=:_!"0J2<$N$h$&$JJ}K!$G!"%9%/%m!<%k%P!<$N@_Dj$r9T$C$F$$$^$9!#$3(J
$@$N$h$&$K$9$k$H!"2#%9(J$@%/%m!<%k%P!<$OI=<($5$l$^$9$,!"$I$3$r%/%j%C%/(J
$@$7$F$b%9%/%m!<%k$7$^$;$s!#(J

1)$@!!%F%-%9%H%5%V%&%#%s%I%&$r(J$@$D$/$k!#(J
$@!!!!!!(Jtext = xv_create(frame,TEXTSW,
                       WIN_ROWS,                   20,
                       WIN_COLUMNS,                80,
                       TEXTSW_READ_ONLY,           TRUE,
                       TEXTSW_LINE_BREAK_ACTION,   TEXTSW_CLIP,
                       0);

2)$@!!2#%9%/%m!<%k%P!<$r$D$/$k!#(J
      Scrollbar    horiz_scr;
      horiz_scr = xv_create(text,SCROLLBAR,
                            SCROLLBAR_DIRECTION,   SCROLLBAR_HORIZONTAL,
                            SCROLLBAR_PAGE_LENGTH, 80,
                            SCROLLBAR_VIEW_LENGTH, 80,
                            SCROLLBAR_PIXELS_PER_UNIT, 8
                            0)
$@!!!!!J(JSCROLLBAR_PIXELS_PER_UNIT$@CM$O!";HMQ$7$F$$$k%U%)%s%H$,(J16*8$@$HJ9$$$?(J
$@!!!!!!$N$G!"#8$H$7$?!#!K(J
$@!]!]!]!]!]!]!]!](J

$@$I$&$+$h$m$7(J$@$/$*4j$$CW$7$^$9!#(J


$@!!!!!!!!!!!!!!!!!!!!@6?e!!<B(J
$@!!!!!!!!!!!!!!!!!!!!IY;NDL%3%_%e%K%1!<%7%g%s!&%7%9%F(J$@%`%:3t<02q<R!J#F#C#S!K(J
-------------------------< $@0zMQ=*N;(J >-------------------------

$@$h$m$7$/$*4j$$(J$@$$$?$7$^$9!%(J(_ _)
--
fukuda@bell.flab.fujitsu.co.jp