Re: Problems with Gtk::Text and set_pointer and Text widget questions



Michel Blanc wrote:

I have a problem with the Text widget. When I try to use set_point(), I
always get :

"Use of uninitialized value in subroutine entry at test2.pl line 143"

I use the demo Text widget example, and just add the following :

$text->signal_connect ("button_press_event" => \&button_press);

This is possibly a bug. I also had no luck with ->set_point, it was just
ignored (yes, I don't like warnings ;), at least with version 0.7007. I
didn't check 0.7008 yet.

Also, is there anyway to navigate the widget using, for instance
something similar to Tk indices (linestart, end, @x,y  etc...) ? 

I'm very interested in the answer ;) For example I don't like they way
of navigating up and down, skipping virtual wrapped lines. I would
prefer just walk through any visible line, independent from being part
of a wrapped line or not.

Joern

-- 
sub i($){print$_[0]}*j=*ENV;sub w($){sleep$_[0]}sub _($){i"$p$c > ",w
1,$_=$_[0],tr;i-za-h,;a-hi-z ;,i$_,w 1,i"\n"}$|=1;$f='HO';($c=$j{PWD}
)=~s/$j{$f."ME"}/~/;$p="$j{USER}\ $j{HOSTNAME}:";_"kl",$c='~',_"zu,".
"-zn,*",_"#,epg,lw,gwc,mfmkcbm,cvsvwev,uiqt,kwvbmvb?",i"$p$c > ";w 99




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]