Plugin Cafe's original forum is still archived and available for searches. The ability to post here has been disabled.
 
Developer's Forum [PREV] [NEXT]
Subject: RE: Oh yes!
From: Mikael Sterner
Date: 6/14/2002 8:58 PM GMT
    >Can you tell me how to use the message class?
    >Maybe three lines or anything. I looked into the
    >gui header file and found BFM_ASK_TABSWITCH. I
    >guess this is what I want to know. But how to use
    >it?

    You can pick and choose among many messages:

    const var BFM_ACTIVE_CHG = 'bACG';  // Activation changed
    const var BFM_ACTIVE = 'actv';  // Flag, if window is active
    
    const var BFM_GOTFOCUS = 'bGFC';  // Item gots the focus
    const var BFM_LOSTFOCUS = 'bLFC'; // Item lost the focus
    
    const var BFM_ASK_TABSWITCH = 'stab'; // ask for switching tabs
    
    const var BFM_VISIBLE_ON = 'visT'; // Message about changing to visibility
    const var BFM_VISIBLE_OFF = 'visF'; // Message about changing to visibility
    
    MyDialog::Message(msg)
    {
      if (msg->GetId() == BFM_ACTIVE_CHG)
      {
        println("BFM_ACTIVE_CHG,  BFM_ACTIVE = " + tostring(msg->GetInt(BFM_ACTIVE)));
      }
      else if (msg->GetId() == BFM_GOTFOCUS)
      {
        println("BFM_GOTFOCUS");
      }
      else if (msg->GetId() == BFM_LOSTFOCUS)
      {
        println("BFM_LOSTFOCUS");
      }
      else if (msg->GetId() == BFM_ASK_TABSWITCH)
      {
        println("BFM_ASK_TABSWITCH");
      }
      else if (msg->GetId() == BFM_VISIBLE_ON)
      {
        println("BFM_VISIBLE_ON");
      }
      else if (msg->GetId() == BFM_VISIBLE_OFF)
      {
        println("BFM_VISIBLE_OFF");
      }
      else 
      {
        var code = "????";
        var id = msg->GetId();
        code[3] = (id & 0x000000FF);
        code[2] = (id & 0x0000FF00) >> 8;
        code[1] = (id & 0x00FF0000) >> 16;
        code[0] = (id & 0xFF000000) >> 24;
        println("Unknown: " + tostring(msg->GetId()) + " / " + code);
      }
    }
    


    As far as I can see, BFM_VISIBLE_ON/OFF seems to be the best candidate.

    Mikael Sterner
    Developer Support
Current Message String
new Check Visibility of Dialog? - 3DDesigner - 6/14/2002 4:19 PM GMT
 new RE: Yes - Mikael Sterner - 6/14/2002 5:27 PM GMT
 new Ahhhh :) - 3DDesigner - 6/14/2002 6:44 PM GMT
 new NO :( - 3DDesigner - 6/14/2002 7:28 PM GMT
 new RE: Oh yes! - Mikael Sterner - 6/14/2002 8:58 PM GMT
 new RE: Oh yes! - 3DDesigner - 6/14/2002 9:59 PM GMT
[PREV] [NEXT]