Results 1 to 7 of 7

Thread: Questin about "Tests : window1 project"

  1. #1

    Default Questin about "Tests : window1 project"

    How come window1 has title while window2 doesn't have it?

    The codes look the same :
    CL_GUITopLevelDescription window_desc1;
    window_desc1.set_title("Window 1");
    CL_Window window1(CL_Rect(10, 10, 630, 150), &gui, window_desc1);

    CL_GUITopLevelDescription window_desc2;
    window_desc2.set_title("Window 2");
    CL_Window window2(CL_Rect(10, 160, 630, 470), &gui, window_desc2);

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    Could you show a screenshot of this?

  3. #3

    Default

    Here is attached screen shot and additional issues.
    I also added one checkbox , one radiobutton on window1 and one checkbox on window2.
    Issue 1(?) : Checkbox1 and radiobutton1 didn't change after I click on them. radiobutton1 looks like checkbox.
    Issue 2(?) : Checkbox2 does not appear on window2.

    here the codes :
    CL_GUITopLevelDescription window_desc1;
    window_desc1.set_title("Window 1");
    CL_Window window1(CL_Rect(10, 10, 630, 150), &gui, window_desc1);
    CL_CheckBox checkbox1(&window1);
    checkbox1.set_geometry(CL_Rect(20, 40, 200, 60));
    checkbox1.set_text("CheckBox 1");

    CL_RadioButton rbut1(&window1);
    rbut1.set_geometry(CL_Rect(20, 60, 200, 80));
    rbut1.set_text("Radio button1");

    CL_GUITopLevelDescription window_desc2;
    window_desc2.set_title("Window 2");
    CL_Window window2(CL_Rect(10, 160, 630, 470), &gui, window_desc2);
    CL_CheckBox checkbox2(&window2);
    checkbox2.set_geometry(CL_Rect(20, 40, 200, 60));
    checkbox2.set_text("CheckBox 2");
    Attached Images Attached Images  

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

    Default

    Yes, it appears there is a bug in the GDI target. (It works on GL)

    In
    Code:
    void CL_GDIGraphicContextProvider::set_frame_buffer(const CL_FrameBuffer &buffer)
    {
    	CL_GDIFrameBufferProvider *gdi_framebuffer = dynamic_cast<CL_GDIFrameBufferProvider *>(buffer.get_provider());
    	pixel_canvas->set_framebuffer(gdi_framebuffer->get_colorbuffer0());
    }
    Assumes that the colorbuffer0 will not change.

    (by calling: )
    Code:
    void CL_GDIFrameBufferProvider::attach_color_buffer(int color_buffer, const CL_Texture &texture, CL_TextureSubtype subtype, int level, int zoffset)
    {
    	if (color_buffer == 0)
    	{
    		colorbuffer0_type = type_texture;
    		colorbuffer0_render = CL_RenderBuffer();
    		colorbuffer0_texture = texture;
    	}
    }
    This is incorrect

    I'll have a look tomorrow if I have time

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

    Default

    SVN: Fixed the GDI target framebuffer. If the GDI framebuffer is modified, it sends a CL_Signal to any connected CL_Slot's to inform of modification.

    Thus CL_GDIGraphicContextProvider's pixel_canvas is informed of modifications

  6. #6

    Default Where and how can I get this SVN?

    Quote Originally Posted by rombust View Post
    SVN: Fixed the GDI target framebuffer. If the GDI framebuffer is modified, it sends a CL_Signal to any connected CL_Slot's to inform of modification.

    Thus CL_GDIGraphicContextProvider's pixel_canvas is informed of modifications
    I would love to fix this. But, where and how can I get this SVN?

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

    Default

    Hopefully before the end of the week ClanLib v2.0.2 will be released, you can find it there.

    SVN is a method of obtaining the very latest source under development, but this can be unstable!

    If you want to try it (although, it is probably best to wait) See:
    http://en.wikipedia.org/wiki/TortoiseSVN (others are available, that's the one I use). The source is located at: svn://esoteric.clanlib.org/ClanLib/Development/ClanLib-2.0

Similar Threads

  1. Multiple "keydown" signals on a single keystroke
    By zag in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 10-19-2008, 11:04 PM
  2. "Versionator" pet project
    By Chambers in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 07-29-2007, 10:50 PM
  3. Coppying "skeleton" wont work (MAC)
    By Suudsu2200 in forum Novashell Game Creation System
    Replies: 1
    Last Post: 03-04-2007, 08:24 PM
  4. undo on "replace selected" only does one at a time
    By whisperstorm in forum Novashell Game Creation System
    Replies: 1
    Last Post: 11-25-2006, 05:41 AM
  5. Di-Mart Guns -Explanation of the "Store Guy" event
    By rmcnew in forum Funeral Quest
    Replies: 2
    Last Post: 01-15-2004, 06:25 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
  •