Drag Message



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

    On 06/05/2003 at 16:02, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.100 
    Platform:    Mac  ;  
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    I already asked this before. Samir helped me somehow (thank you Samir :-) but I still can't do what I want.
    Imagine the following:
    I drag an object into a (lets say) edit field inside my dialog. As soon as the cursor is inside the edit field (but with the mouse button still pressed) I want the cursor to change into a pointing finger or the name of the object placed in the edit field (or both), If I still keep the mouse button pressed and move the cursor out of the edit field, I want the edit field to be empty.
    If I release the mouse while the cursor is inside the edit field, the name of the object is accepted.
    At the current moment, as soon as the cursor gets inside the edit field, the name is stored there. Meaning, I can't detect the the mouse button was released inside the field.
    BFM_DRAG_FINISHED seems to not be working :-(
    How can I do it in COFFEE? Thank you very much in advance.

    Rui Batista



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

    On 07/05/2003 at 15:48, xxxxxxxx wrote:

    I know you don´t want to hear that ;) but the code I gave does exactly what you want.
    Mikael?

        
        
        var obj,temp;  
        MyDialog::Message(msg)  
        {  
         if(msg->GetId() == BFM_dragRECEIVE)    
         {  
          if(CheckDropArea(drag_TEST, msg, TRUE, TRUE))  
          {  
           temp = GetdragObject(msg);  
           SetdragDestination(MOUSE_POINT_HAND);  
           SetString(drag_TEST, temp->GetName());
        
        
        
        
           if(msg->GetData(BFM_drag_FINISHED))  
           {   
              obj= GetdragObject(msg);  
              SetString(drag_TEST, obj->GetName());  
              
           }  
           return TRUE;  
             
          }  
          else SetString(drag_TEST, "");  
         }  
         return super::Message(msg);  
        }
    


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

    On 07/05/2003 at 16:17, xxxxxxxx wrote:

    I loved to read that!! :-) It worked!! I wonder why it never worked before?
    Even the GuiDemo.cof plug-in from Maxon is not working.

    Rui Batista


Log in to reply