Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Activate GeDialog after loosing focus in R 10.5

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 198 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 10/11/2009 at 05:03, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I have a problem with my GeDialog object. When i lost the focus, i want catch the message and reactivate the dialog. But i havent found a function. I tried Activate(LONG id), but nothing happened. Then i have tried to open the dialog again and ... , but without success too. I got only a GOTFOCUS message, but the dialog wasnt active.

      Here is my code:

        
      if(msg.GetId() == BFM_GOTFOCUS)   
      {   
           GePrint("got");   
           return TRUE;   
      }   
              
      if(msg.GetId() == 1649165891)    //~ focus lost   
      {   
           GePrint("lost");   
           //this->Open(TRUE, ID, -1, -1, 50, 50);   
                             
           //CallCommand(ID);   
           BaseContainer m(COREMSG_CINEMA_EXECUTEEDITORCOMMAND);   
           m.SetLong(COREMSG_CINEMA_EXECUTEEDITORCOMMAND, ID);   
           SendCoreMessage(COREMSG_CINEMA, m);   
           //EventAdd(EVENT_0);             
      }   
      

      Does anyone know a solution for these problem?

      Best,

      coffeemax

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 17/11/2009 at 03:49, xxxxxxxx wrote:

        You can't force a dialog to have always the focus.

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • First post
          Last post