Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/04/2002, 15:20
Avatar de epplestun
epplestun
 
Fecha de Ingreso: octubre-2001
Mensajes: 1.621
Antigüedad: 23 años, 5 meses
Puntos: 5
Re: El uso de GtkScintilla

He conseguido hacer algo muy sencillo, a ver si sirve de algo :

<?
if (!class_exists('gtk')) {
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_gtk.dll');
else
dl('php_gtk.so');
}
function delete_event()
{
return false;
}
function destroy()
{
Gtk::main_quit();
}
$window = &new GtkWindow();
$window->connect('destroy', 'destroy');
$window->connect('delete-event', 'delete_event');
$window->set_border_width(3);
$this = &new GtkScintilla();
$this->set_margin_type_n(2, 0);
$this->set_margin_width_n(2, 0);
$this->set_margin_width_n(1, 20);
$this->autoc_set_choose_single(TRUE);
$this->set_tab_indents(1);
$this->set_backspace_unindents(1);
$this->set_usize(500, 500);
$this->show_lines(1,20);
$this->brace_highlight(1, 20);
$this->get_highlight_guide();
$this->show();
$window->add($this);
$window->show_all();
Gtk::main();

?>

Bueno a disfrutar del code

<table style="border:1px solid black"><tr><td><center>
<embed width="88" height="144" src="http://www.alaplaya.com/~epplestun/yo.swf"></td></td><font face=verdana size=1>Ivan Rodriguez el poder es [B]PHP</p></td></tr></table>