Results 1 to 3 of 3

Thread: More Windows fun

  1. #1
    Lesser Knight
    Join Date
    May 2007
    Posts
    46

    Default More Windows fun

    More customer feedback under Windows gives me 2 more issues to resolve.

    First, when the game is in windowed mode and the user deactivates the game using the taskbar button only the lost_focus signal is never raised. Works great if clicking off the window or on another app, just not on the taskbar.

    Second, I am using a CL_Sprite cursor. When the cursor leaves the window (again in windowed mode) the system cursor reappears, but if the cursor moves into the title bar it does not reset to the system cursor.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Taskbar as in the windows taskbar at the bottom of the desktop, right?

    I did a quick test with Vista, if I right click on the taskbar button for the game, I lose focus then get focus quickly, then, if I choose "Close", it does close the app. (I don't think there is any reason the game needs to lose focus before it shuts down)

    Or is the problem you right click the taskbar button, choose close, and nothing happens?

    Make sure you have this routed...:

    CL_Slot slot_quit = m_pWindow->sig_window_close().connect(this, &App::OnWindowClose); )

    I haven't played with CL_Sprite cursors yet...
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Lesser Knight
    Join Date
    May 2007
    Posts
    46

    Default

    Taskbar as in the windows taskbar at the bottom of the desktop, right?
    Yes, that is what I mean.


    Actually, its the problem with losing focus and then getting it right back. The game is on a timer and the timer stops when the game loses focus and starts again when it regains focus. The game looks minimized, but the timer runs because it thinks is still has focus.

    The only way, it seems, for the "lose/get focus" issue is by minimizing by clicking on the taskbar button. If you click on another window or minimize using the window title bar button, all is well.

    I am considering putting in a check (somehow...) to detect the minimized state and pause the game even when it has focus.

Similar Threads

  1. Mac vs. Windows bits
    By madmark in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 01-22-2008, 07:57 AM
  2. Can't find windows.h - Compiling ClanLib
    By Katzewurzt in forum Official ClanLib SDK Forums
    Replies: 18
    Last Post: 11-04-2007, 06:49 AM
  3. Anybody have DirectX sdk files necessary for compiling on windows?
    By imnotbncre8ive in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 10-31-2007, 02:38 PM
  4. Latest windows build corrupted?
    By whisperstorm in forum Novashell Game Creation System
    Replies: 1
    Last Post: 03-03-2007, 12:22 PM
  5. Animated Windows and Dialogs
    By AllenJB in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-20-2006, 04:28 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •