Results 1 to 2 of 2

Thread: InputTextRenderComponent::~InputTextRenderComponen t() calling "CloseKeyboard"

  1. #1
    Lesser Wizard
    Join Date
    Nov 2010
    Location
    Los Angeles, California, United States, United States
    Posts
    126

    Default InputTextRenderComponent::~InputTextRenderComponen t() calling "CloseKeyboard"

    I was connecting a function to "CloseKeyboard" and noticed that this function always gets called whether the keyboard is showing or not. This was causing bugs for me as the function would refer back to Entities and Components that were being deleted.

    Modifying the component destructor as such fixed the problem for me.

    Code:
    InputTextRenderComponent::~InputTextRenderComponent()
    {
        if (GetEntityWithNativeUIFocus() == GetParent())
        {
            GetFunction("CloseKeyboard")->sig_function(NULL);
        }
    }

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

    Default

    Thanks, I'll make this change
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. How I make a "text" object with custom font?
    By speeder in forum Novashell Game Creation System
    Replies: 1
    Last Post: 04-10-2010, 02:23 AM
  2. Missing "clanCore-static-mtdll-uc-debug.lib"
    By igpay in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 04-05-2010, 09:23 PM
  3. Pilgrimís Quest: Problem in "Welcome to Fire woods!"
    By Floater in forum Dink Smallwood HD
    Replies: 0
    Last Post: 08-18-2009, 06:07 PM
  4. 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
  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
  •