Results 1 to 2 of 2

Thread: GUI switching windows example

  1. #1
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default GUI switching windows example

    This is a response to a question on ClanLib IRC:

    This patch demonstration is for ClanLib 2.2 --> Examples/Display_Render/Blend

    Replace app.cpp and app.h

    It creates a standard demo gui window.
    Press escape
    It creates a full screen gui window

    This may not be what you want, it depends on how you use the GUI
    Attached Files Attached Files

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    For other people reading this. If you are using the GUI SystemWM (not TextureWM)

    There is an existing test that does the same:

    Tests/GUI/GUIFullScreen

    Note, run it from the debugger, the test does not contain exit code!
    Press F11 to toggle windows. Note, the window is just recreated, the full screen flag is not set (but it can be)

    Also note, the following patch is required to get it to compile:

    Code:
    Index: test.cpp
    ===================================================================
    --- test.cpp	(revision 5173)
    +++ test.cpp	(working copy)
    @@ -76,7 +76,8 @@
     		accel_fullscreen.func_pressed().set(this, &TestApp::on_accelerator_callback);
     		accel_table.add_accelerator(accel_fullscreen);
     
    -		gui.exec(accel_table);
    +		gui.set_accelerator_table(accel_table);
    +		gui.exec();
     	}
     	catch(CL_Exception error)
     	{

Similar Threads

  1. Windows app crashing on Maximize (Windows XP)
    By BigBMan in forum Proton SDK
    Replies: 8
    Last Post: 03-17-2011, 01:38 AM
  2. Res switching
    By Uhfgood in forum Novashell Game Creation System
    Replies: 2
    Last Post: 07-02-2008, 10:28 PM
  3. Windows Bug
    By Starclopsofish in forum Novashell Game Creation System
    Replies: 2
    Last Post: 04-25-2008, 05:00 AM
  4. More Windows fun
    By madmark in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 03-19-2008, 08:16 PM
  5. Mac vs. Windows bits
    By madmark in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 01-22-2008, 07:57 AM

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
  •