Foros del Web » Programando para Internet » PHP » PHP-GTK »

El uso de GtkScintilla

Estas en el tema de El uso de GtkScintilla en el foro de PHP-GTK en Foros del Web. Hola, pues aqui va mi pregunta, alguien a usado GtkScintilla ?¿ estoy intentando hacer un editor en PHP-GTK que me coloree la sintasix. Si alguien ...
  #1 (permalink)  
Antiguo 21/04/2002, 13:54
Avatar de epplestun  
Fecha de Ingreso: octubre-2001
Mensajes: 1.621
Antigüedad: 23 años, 5 meses
Puntos: 5
El uso de GtkScintilla

Hola, pues aqui va mi pregunta, alguien a usado GtkScintilla ?¿ estoy intentando hacer un editor en PHP-GTK que me coloree la sintasix. Si alguien sabe algo se lo agradeceria.

<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>
  #2 (permalink)  
Antiguo 21/04/2002, 15:20
Avatar de 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 :

&lt;?
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 = &amp;new GtkWindow();
$window-&gt;connect('destroy', 'destroy');
$window-&gt;connect('delete-event', 'delete_event');
$window-&gt;set_border_width(3);
$this = &amp;new GtkScintilla();
$this-&gt;set_margin_type_n(2, 0);
$this-&gt;set_margin_width_n(2, 0);
$this-&gt;set_margin_width_n(1, 20);
$this-&gt;autoc_set_choose_single(TRUE);
$this-&gt;set_tab_indents(1);
$this-&gt;set_backspace_unindents(1);
$this-&gt;set_usize(500, 500);
$this-&gt;show_lines(1,20);
$this-&gt;brace_highlight(1, 20);
$this-&gt;get_highlight_guide();
$this-&gt;show();
$window-&gt;add($this);
$window-&gt;show_all();
Gtk::main();

?&gt;

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>
  #3 (permalink)  
Antiguo 21/04/2002, 16:06
Avatar de AngelRoyo  
Fecha de Ingreso: marzo-2002
Ubicación: Santiago de Chile
Mensajes: 207
Antigüedad: 23 años, 1 mes
Puntos: 5
Re: El uso de GtkScintilla


Hola Epleplem..
Oye tio, donde ahí material para dar mis primeros pasos en GTK.
Me gustaria hacer una aplicación VISUAL donde poder Ingresar Nombre y Telefono y guardar los datos en una BD mySQL.
Pero que sea transportable en un .exe no sea necesario instalar toda la &quot;faramalla&quot; que se instalo en mi PC para hacer una aplicación para web.

Espero me ayudes Epleplem... Gracias.
Saludos de AngelRoyo al país Vasco.
  #4 (permalink)  
Antiguo 21/04/2002, 20:13
O_O
 
Fecha de Ingreso: enero-2002
Ubicación: Santiago - Chile
Mensajes: 34.417
Antigüedad: 23 años, 3 meses
Puntos: 129
Re: El uso de GtkScintilla

AngelRoyo

(y demas interesados) ...

De momento PHP GTK es interpretado y no tiene compilador para generar un ejecutable de cualquier plataforma y S.O. pero segun dicen todo llegará, no obstante estan en la version 0.5.0

Aqui tienes la web oficial:
<a href='ir.asp?http://gtk.php.net/' target='_blank'>http://gtk.php.net/...</a>

Un saludo,
  #5 (permalink)  
Antiguo 22/04/2002, 22:48
Avatar de AngelRoyo  
Fecha de Ingreso: marzo-2002
Ubicación: Santiago de Chile
Mensajes: 207
Antigüedad: 23 años, 1 mes
Puntos: 5
Re: El uso de GtkScintilla

Gracias..
Pues me queda seguir esperando...la 1.0
Sigan muchachos del GTK :).
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:43.