logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Trouble with Wx::WebKit: msg#00010

Subject: Trouble with Wx::WebKit
Okay, so I've been trying to get a perl interface to the wxWebKit class, and have been *mostly* successful. If you've got OS X 10.3 or better, http://www.sidhe.org/~dan/Wx-WebKit-0.02.tar.gz (it's hit CPAN, but not the mirrors yet) gets you access to a webkit control, which is good. Even works (mostly) which is better. (version 0.01 sorta works, except I didn't set @ISA right so you couldn't invoke methods in any parent class. D'oh!)

It's that mostly part that has me puzzled, and I'm not sure if there's a bug in my WxPerl code, my XS interface to the wxWebKit class, or in the underlying wxWebKit class itself.

I've attached a test program (OS X only) that demonstrates the problem. It's a hacked up wxGlade program, and has a main window split in two, with the HTML rendering widget in the *right* side of the window. If you run this with the USE_WEBKIT environment variable unset, it used wxHtmlWindow, if you have the USE_WEBKIT env variable set (any value) it uses wxWebKitCtrl.

The problem is that with the wxWebKitCtrl, the HTML widget is on the *left* side of the window, not the right. (It's on the right, where it should be, with the wxHtmlWindow widget) This is... surprising. The size of the webkit control is correct -- it doesn't take up the whole window, it's just like the upper-left corner coordinates are incorrect.

I'm assuming the perl code's correct, since the only code difference between the two html rendering widgets is which is created. It's certainly possible I've bobbled the XS code somewhere, but there's really not all that much to it so if there's a mistake I'm not seeing it. (Not that it wouldn't be a blatantly obvious mistake, of course -- these things usually are :) I'm kinda hoping the problem's not in the underlying Wx 2.6.2 code, since that'll be something of a pain to fix.

So, could someone take this and try and duplicate the problem, to see if I screwed something up?
--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
dan@xxxxxxxxx                         have teddy bears and even
                                      teddy bears get drunk

Attachment: webkit_test.pl
Description: Binary data

Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe