Results 1 to 3 of 3

Thread: CL_GUIComponent Issues

  1. #1

    Default CL_GUIComponent Issues

    Hello,

    I have a class :

    class MyClass : public CL_GUIComponent
    {
    ...
    }

    When i add child components to that component, they are drawed normally.

    BUT, if i perform a ->set_visible(false) on any of then, they are still drawed/painted on the screen, you can't interact with then (like if they were really invisible), but you can still see then...

    If we just change the inherited class to CL_Window, everything works fine... but then you incorporate all the CL_Window implementation wich is not what i want !

    Is there anything we can do around this ?

  2. #2

    Default

    I'd guess this is because a CL_Window paints a background, while a plain CL_GUIComponent doesn't. I remember from your screenshots that you had a background image - that's what you need to repaint as your transparent GUI component has nothing it can paint. The easiest way is probably to make your background image also a CL_GUIComponent that draws the image in on_render(). Redraw should work then also when you call request_repaint on the transparent component.

  3. #3

    Default

    Quote Originally Posted by Harry View Post
    I'd guess this is because a CL_Window paints a background, while a plain CL_GUIComponent doesn't. I remember from your screenshots that you had a background image - that's what you need to repaint as your transparent GUI component has nothing it can paint. The easiest way is probably to make your background image also a CL_GUIComponent that draws the image in on_render(). Redraw should work then also when you call request_repaint on the transparent component.
    I will try

Similar Threads

  1. Performance Issues in Fedora
    By Starclopsofish in forum Novashell Game Creation System
    Replies: 4
    Last Post: 02-09-2009, 03:32 PM
  2. High precision/resolution time, multicore issues
    By z42 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 03-17-2008, 07:34 PM
  3. A patch to ClanLib 8.0: added RichEdit, remaked InputBox and some other issues.
    By ValkaVALES in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 07-10-2007, 11:15 PM
  4. Issues
    By Dorian1 in forum RTsoft Tavern
    Replies: 1
    Last Post: 09-09-2004, 09:07 PM
  5. *groan* Dink having issues...
    By in forum Dink Smallwood HD
    Replies: 5
    Last Post: 06-01-2003, 04:55 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
  •