473,320 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

perlgtk embed window

I'm trying to reparent an external window into a perlgtk script. I
create an xterm and the result I get from xwininfo is.

xwininfo: Window id: 0x1c0000e

Running the following script does nothing to the external window, the
same if I create a gtk window. I've tried this using fluxbox and kde,
same results. Any help as to what I'm doing wrong would be greatly
appreciated.

Thanks,
JH

#!/usr/bin/perl -w
$rxid = 0x1c0000e;
use Gtk;
use X11::Protocol;
init Gtk;
$window = new Gtk::Window("toplevel");
$button = new Gtk::Button("button");
$window->signal_connect( "delete_event", \&CloseAppWindow );
$button->signal_connect( "clicked", \&CloseAppWindow );
$button->show();
$window->border_width( 15 );
$window->add( $button );
$window->show();
$xid = $window->window->XWINDOW;
print "xid = $xid\n";
$x = new X11::Protocol;
@t = $x->ReparentWindow($xid, $rxid, 0, 0);
foreach $j (@t) {
print "t = $t[$l++]\n";
}
print "rxid = $rxid\n";
$window->add_embedded_xid($rxid);
main Gtk;
exit( 0 );
Jul 19 '05 #1
0 2453

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eric Osman | last post by:
Hi, When I run the following html file on netscape, and the button is clicked, the new window pops BEHIND all my other windows. How can I easily fix this html file so the window comes up in...
5
by: Jeff Stewart | last post by:
It seems that whenever I pass window.open() a relative URL, it fails. The following shows up in the Netscape Javascript Console: Error: " nsresult: "0x80004005 (NS_ERROR_FAILURE)" location:...
1
by: Yasutaka Ito | last post by:
Hi, I have an MDI application, in which I want to embed one form (System.Windows.Forms.Form) into a specified area of my MDI application. This is, wihtout affecting the capability of other child...
17
by: Applebrownbetty | last post by:
Hi, I'd like to append/amend the following code from the Dreamweaver extension "Open Picture Window Fever" for the ability to center the PopUp window: By default, it allows the window to be...
1
by: McDermott Miller | last post by:
Is there any way to programmatically (in VB.net) control a Command Window, e.g change its size, display font size, embed it in GUI etc? It seems that the Console class will not allow you to do...
9
by: rolandgust | last post by:
I've written some code that creates a pop-up window to play back QuickTime movies and then pushes HTML into that window so I don't have to have a separate HTML file for every movie. The code works...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that...
7
by: ScottH | last post by:
Curious how you could embed a console in a Windows form.. any ideas ?
1
by: requeth | last post by:
I'm trying to embed a command window in a form in VB.NET. I remember back in the old days there was a button in the IDE to add the window, and I never really learned how it worked. I just...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.