AddProgressGadget



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

    On 25/03/2011 at 04:39, xxxxxxxx wrote:

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

    ---------
    hi,
     
    I use AddProgressGadget in my dialog plugin with R11.5 sdk
     
    but i don't find AddProgressGadget in r12 sdk.
     
    Is it does not support in r12 sdk ?



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

    On 25/03/2011 at 06:14, xxxxxxxx wrote:

    It's now a subclass of the Dialog class (see R12 documentation). Imo a very bad solution and works odd but that's how it's done in r12.



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

    On 31/03/2011 at 05:49, xxxxxxxx wrote:

    Please check teh PROGRESSBAR dialog resource element.

    Little example.

    resource file

      
    DIALOG DLG_LISTVIEW  
    {  
      NAME TDLG;  
      SCALE_H;SCALE_V;  
        
      GROUP  
      {  
          PROGRESSBAR MY_PROGRESS_BAR_ID { SIZE -100,-20; }  
      }      
    }  
    

    code

      
    ...  
      
    Bool ListViewDialog::CreateLayout(void)  
    {  
      // first call the parent instance  
      Bool res = GeDialog::CreateLayout();  
      
      res = LoadDialogResource(DLG_LISTVIEW,NULL,0);  
      
      return res;  
    }  
      
    Bool ListViewDialog::InitValues(void)  
    {  
      // first call the parent instance  
      if (!GeDialog::InitValues()) return FALSE;  
      
      BaseContainer msg(BFM_SETSTATUSBAR);  
      msg.SetBool(BFM_STATUSBAR_PROGRESSFULLSIZE, TRUE);  
      msg.SetBool(BFM_STATUSBAR_PROGRESSON, TRUE);  
      msg.SetReal(BFM_STATUSBAR_PROGRESS, 0.5);  
      
      SendMessage(MY_PROGRESS_BAR_ID, msg);  
      
      
      return TRUE;  
    }  
      
    ...  
    

    cheers,
    Matthias


Log in to reply