Embedder, Ejemplo De Gambas3
Hola!.
No me funciona.¿ Os funciona a vosotros ?.
Lo que hago es poner parte del titulo de la ventana y muestra un error como este:
Citar:
The program 'Embedder.gambas' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 1313 error_code 3 request_code 20 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Cree el ejecutable y intente ejecutarlo con --sync, pero es lo mismo.
Si lo ejecuto en vez de gb.gui con gb.qt4, me dice que no encuentra la ventana.
El sistema es Linux Mint 14
Siempre varia el numero serial. Si lo hago funcionar desde
gambas, el programa devuelve error 1.
Se que existe un comando en Linux llamado xprop pero ando perdido.
Citar:
xprop (1) - property displayer for X
XPropertyEvent (3) - PropertyNotify event structure
Citar:
usage: xprop [-options ...] [[format [dformat]] atom] ...
where options include:
-grammar print out full grammar for command line
-display host:dpy the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname remove a property
-set propname value set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever
Probar esto y veréis que curioso.
- Ejecutar la calculadora.
- Vais a un terminal y ejecutais:
Saludos
===================
Gambas Básico
"No es un bug, es una característica no documentada"