Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 48245
Status: resolved
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Wx::Display would be extremely useful
I've been trying to implement logic in Padre to detect if it is loaded off the screen, or dialogs in general are loaded off the screen, and if they are where to put the window instead. There's a basic IsShownOnScreen, but I'm struggling with complex screen geometry and some other factors. If possible, could you please implement the wxDisplay class so that this screen geometry information is accessible.
Subject: Re: [rt.cpan.org #48245] Wx::Display would be extremely useful
Date: Mon, 27 Jul 2009 21:02:51 +0200
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
Adam Kennedy via RT wrote: Show quoted text
> If possible, could you please implement the wxDisplay class so that this > screen geometry information is accessible.
It's already implemented (see XS/Display.xsp). What's missing? Regards, Mattia
Oh wow, you are right! I think my problem was that I had expected to have to do "use Wx::Display;". Sometimes not having a .pm file for each library trips me up. Consider this closed.
Actually, there is one function missing. DB<15> x Wx::Display->new(0)->GetDepth Can't locate object method "GetDepth" via package "Wx::Display" at (eval 38)[C:/strawberry/perl/lib/perl5db.pl:638] line 2
Subject: Re: [rt.cpan.org #48245] Wx::Display would be extremely useful
Date: Tue, 28 Jul 2009 20:35:13 +0200
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
Adam Kennedy via RT wrote: Show quoted text
> Queue: Wx > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48245 > > > Actually, there is one function missing. > > DB<15> x Wx::Display->new(0)->GetDepth > Can't locate object method "GetDepth" via package "Wx::Display" at (eval > 38)[C:/strawberry/perl/lib/perl5db.pl:638] line 2
You probably already figured out ->GetCurrentMode->GetDepth; there is no wxDisplay::GetDepth in wxWidgets (I just checked the sources). Regards, Mattia
CC: adamk [...] cpan.org
Subject: Re: [rt.cpan.org #48245] Wx::Display would be extremely useful
Date: Wed, 29 Jul 2009 12:08:09 +1000
To: bug-Wx [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
Nope, but thanks for the heads up. One of the downsides of relying on the wxWidgets C docs I guess, but that's not a complaint. I'd die if I had to replicate the entire docs of wxWidgets to POD as well. Adam K 2009/7/29 Mattia Barbon via RT <bug-Wx@rt.cpan.org>: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=48245 > > > Adam Kennedy via RT wrote:
>>        Queue: Wx >>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48245 > >> >> Actually, there is one function missing. >> >>   DB<15> x Wx::Display->new(0)->GetDepth >> Can't locate object method "GetDepth" via package "Wx::Display" at (eval >> 38)[C:/strawberry/perl/lib/perl5db.pl:638] line 2
> >   You probably already figured out ->GetCurrentMode->GetDepth; > there is no wxDisplay::GetDepth in wxWidgets (I just checked the sources). > > Regards, > Mattia > > > > >