GtkScintilla doesn't scroll properly?
| From: | Benjamin Smith | Date: | Tue, 28 Mar 2006 02:56:14 +0000 |
| Subject: | GtkScintilla doesn't scroll properly? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6822@lists.php.net to get a copy of this message | ||
I'm running into a strange issue w/GtkScintilla widget(s) - when you type
below the "bottom" of the screen, the scrollbars don't follow the cursor.
This is on Windows with a pretty recent compile of GTK 1.3.x and PHP 4.x.
I've various attempts with set_visible_policy(), set_text(), select/unselect,
etc. to no avail. How can I make GtkScintilla follow the cursor with wordwrap
on and large paragraphs? (no line breaks)
Sample code below. To make it fail, execute, then type in a bunch of text
without any line breaks until the cursor wraps "off the bottom" of the
Scintilla widget and disappears from veiw.
// BEGIN PHP CODE //
$text="A whole bunch of stuff all entered in on one line as though it were ".
"a single paragraph that goes on for line after line endlessly with lots ".
"of words and no real point";
$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);
$w=&New GtkWindow();
$w->Add($s);
$w->Show_All();
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978