Re: GtkScintilla doesn't scroll properly?
| From: | Benjamin Smith | Date: | Fri, 07 Apr 2006 03:14:32 +0000 |
| Subject: | Re: GtkScintilla doesn't scroll properly? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6838@lists.php.net to get a copy of this message | ||
The binary you sent appears to work well with the PHP binaries we have.
Thanks!
-Ben
On Monday 27 March 2006 19:28, Tom Rogers wrote:
> Hi,
>
> Tuesday, March 28, 2006, 12:56:14 PM, you wrote:
> BS> I'm running into a strange issue w/GtkScintilla widget(s) - when you
type
> BS> below the "bottom" of the screen, the scrollbars don't follow the
cursor.
> BS> This is on Windows with a pretty recent compile of GTK 1.3.x and PHP
4.x.
>
> BS> I've various attempts with set_visible_policy(), set_text(),
select/unselect,
> BS> etc. to no avail. How can I make GtkScintilla follow the cursor with
wordwrap
> BS> on and large paragraphs? (no line breaks)
>
> BS> Sample code below. To make it fail, execute, then type in a bunch of
text
> BS> without any line breaks until the cursor wraps "off the bottom" of the
> BS> Scintilla widget and disappears from veiw.
>
> BS> // BEGIN PHP CODE //
>
> BS> $text="A whole bunch of stuff all entered in on one line as though it
were ".
> BS> "a single paragraph that goes on for line after line endlessly with lots
".
> BS> "of words and no real point";
>
> BS> $s=&New GtkScintilla();
> $s->>Set_Wrap_Mode(true);
> $s->>Set_H_Scroll_Bar(false);
> $s->>Set_Margin_Width_N(1,0);
> $s->>Set_Text($text);
> $s->>Set_Usize(20, 100);
>
> BS> $w=&New GtkWindow();
> $w->>Add($s);
> $w->>Show_All();
>
> BS> --
> BS> "The best way to predict the future is to invent it."
> BS> - XEROX PARC slogan, circa 1978
>
>
> Here is my compiled version of scintilla, it is from version 1.63 i think.
> It seems to work ok with your test script.
>
> --
> regards,
> Tom
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978