wxScreenDC & wxDisplay
Steven Van Ingelgem
steven at vaningelgem.be
Sun Nov 4 15:29:47 PST 2007
What I would use is wxScreenDC, but for that one, I can't tell to
choose the screen... I'm thinking now 1 big screen 1280x1024 in the
middle, and 2 smaller (800x600) at the sides. What would it return?
The entire area or only the primary monitor (my guess is the primary
monitor only).
Maybe I didn't clearly stated what I wanted to do, but what I want to
achieve is to draw the image on each screen which is not the primary.
Not streched or so.
For that I need something to draw upon. I know I would be able to get
the sizes with the GetGeometry, but not how they relate to the primary
display.
I will check tomorrow at work. That's more easy for quick testing.
I have a few ideas, maybe you can immediately tell me if they are
wrong so I don't waste time testing them:
1) GetGeometry-rect: does it completely define 1 display? (relative
coordinate system into screendc maybe?)
2a) wxScreenDC is everything, all the displays together (question: how
does it handle different sized displays?) -> get the wxRect from
wxDisplay & draw on those coordinates.
2b) Create a wxFrame, move it to the other monitor (get wxRect from
wxDisplay) & fullscreen it to cover the taskbar and stuff. -> does
fullscreen work on all the displays or only on the display the frame
is on?
Thanks for your continuous support!
On 11/4/07, Vadim Zeitlin <vadim at wxwidgets.org> wrote:
> On Sun, 4 Nov 2007 23:39:35 +0100 Steven Van Ingelgem <steven at vaningelgem.be> wrote:
>
> SVI> How do I access a 2nd screen to paint on?
>
> In exactly the same way as the first one, there is no difference between
> them.
>
> SVI> Is there anyone who have done those things before and would be so kind
> SVI> to lend me a helping hand (what I want to achieve is to just draw a
> SVI> PNG image centered on a black background on all the screens but the
> SVI> primary one).
>
> You do need to use wxDisplay::GetGeometry() and I am pretty sure it's not
> a good idea to do what you want (consider the case of a primary screen in
> the centre and 2 other displays at its sides -- how exactly are you going
> to draw your image?) but this shouldn't prevent you from doing it...
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list