From: Richard Lyman Date: 2004-08-09T22:02:57+09:00 Subject: Re: [ANN] aeditor 1.4 Well... as for your scrolling issue ( if you're talking about how with a little scroll up the scroll bar wouldn't stop ), in FXRuby 1.2 ( hence FOX 1.2 ) it's fixed. I know this because I've been writing my own editor in FXRuby and Ruby ( there seem to be so many around these days!! :-) ). As for the tabs that are on your to do list, it's not that hard to do. You're more than welcome to look at what I've done once I release mine (should be sometime in the next week or so). I'm curious though - why didn't you go with FXScintilla? I ended up using it and it's saved me an enormous amount of trouble. There are things that I haven't been able to figure out, but for me the benefits outweigh the losses. -Rich On Mon, 9 Aug 2004 20:20:00 +0900, Simon Strandgaard wrote: > On Monday 09 August 2004 13:09, "Pe�a, Botp" wrote: > > Simon Strandgaard [mailto:neoneye@adslhome.dk] wrote: > > > AEditor .. snip > > > > thanks for the aeditor and the rpa package. it took me just a few minutes > > to install and run (the rpa --force is handy). > > > > though the display is snappy now (as compared to old ver), I think it is > > not refreshed during scrolls. I notice this if I move the cursor down to > > the end of the file and then up to the beginning again.. as if the > > scrolling of the window is not functioning.. > > > > hope I was clear =) > > yes very clear.. unfortunatly I cannot get scrolling to work on windows. I > attempted to get it working on my parents windows box earlier today, but was > unsuccessful. The code that does the scrolling works ok UNIX, but apparently > not on Windows. > > Thanks for your report. > > I have no idea why Fxruby doesn't like this code? Any suggestions? > > def install_vertical_scroll_callback(view) > if /mswin/ =~ PLATFORM > # blit copy apparently doesn't work on windows? > # TODO: figure out why drawArea doesn't do anything on windows. > return > end > return unless OPTION_OPTIMIZE_VERTICAL_SCROLL > view.set_vscroll_callback do |y1, y2, count| > puts "vscroll y1=#{y1} y2=#{y2} count=#{count}" > fh = @font.fontHeight > sx = 0 > sy = y1 * fh > sw = @back_buffer.width > sh = count * fh > dy = y2 * fh > dx = 0 > FXDCWindow.new(@back_buffer) do |dc| > dc.drawArea(@back_buffer, sx, sy, sw, sh, dx, dy) > end > # do scrolling of the arrays where we keep track of the output > # NOTE: maybe its necessary to clone the lines > @output_valid[y2, count] = @output_valid[y1, count] #.map{|i| i.clone} > @lines[y2, count] = @lines[y1, count] #.map{|i| i.clone} > end > end > > -- > Simon Strandgaard > >