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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    MultiLineEditText will not scale to window

    Scheduled Pinned Locked Moved Bugs
    2 Posts 0 Posters 477 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 29/06/2012 at 09:01, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   All 
      Platform:   Windows  ;   
      Language(s) :

      ---------
      I don't know if I'm doing something wrong.
      But I cannot make the MultiLineEdit textbox scale with the window.
      When I create the code in res edit it works fine.
      But when I use the files that res edit generates in C4D R12 or R13. It no loner works.😠

      Since my plugin is a GeDialog type of plugin. I thought perhaps the dialog type plugins don't support the .res file code for this particular behavior.
      So I also tried using the AddMultiLineEditText() function in the CreateLayout() method. And it doesn't work there either: -BFH_SCALE     <-----Doesn't Work ``-BFV_SCALE     <-----Doesn't Work
      -BFH_SCALEFIT  <-----Doesn't Work
      -BFV_SCALEFIT  <-----Doesn't Work

      It's very important to the way my plugin works that MultiLineEdit textbox shrinks and grows with the window. But nothing I do makes it work.
      It appears to be either a bug. Or an undocumented MultiLineEdit textbox limitation.

      -ScottA

      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 02/07/2012 at 01:24, xxxxxxxx wrote:

        MultiLineEditText should scale with the window if you set the appropriate flags. Here's an example using  AddMultiLineEditText:

        import c4d
        from c4d.gui import GeDialog
          
          
        class TestDialog(GeDialog) :
          
            def CreateLayout(self) :
                
                self.SetTitle("MultiLineEditText Scaling")
                
                self.GroupBegin(id=0, flags=c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT, cols=0, rows=1, title="", groupflags=0)
                
                self.AddMultiLineEditText(1028, flags=c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT)
                
                self.GroupEnd()
                
                return True
          
          
        if __name__=='__main__':
            dialog = TestDialog()
            dialog.Open(dlgtype=c4d.DLG_TYPE_MODAL_RESIZEABLE, pluginid=0, defaultw=600, defaulth=250)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post