Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: cannot see window  (Read 3076 times)

0 Members and 2 Guests are viewing this topic.

Yours3lf

  • Newbie
  • *
  • Posts: 43
    • View Profile
cannot see window
« on: December 22, 2011, 07:57:23 pm »
Hi,

I've just ported my app from Linux to Windows, everything went fine, except when I start the app I can't see the window it creates.
I suppose it does create the window successfully because when I switch to it it can recieve keystrokes, and I can also load in OGL stuff using the created context.

So I checked with winlister (http://www.nirsoft.net/utils/winlister.html) if the window is alive and stuff, and I found out that the position of it is [32767, 32767] (I guess it is pow(2, sizeof(unsigned short)*8) / 2 - 1). When I centered the window, it worked displaying everything, but I don't know how to make sure that it displays the window at [0, 0].

Best regards,
Yours3!f

Oneiros

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
cannot see window
« Reply #1 on: December 23, 2011, 10:43:03 am »
You can set position of the windows:
Quote from: "http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php"
window.SetPosition (int x, int y);

Yours3lf

  • Newbie
  • *
  • Posts: 43
    • View Profile
cannot see window
« Reply #2 on: December 23, 2011, 01:10:36 pm »
Thanks, now it works :)

 

anything