MultiLineEditText will not scale to window
-
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
-
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)