On 08/10/2013 at 17:23, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
I have myself a GeDialog. In this I have an AddEditText() field, and I'm having a little trouble keeping the edit field within it's parents group size. If there is more text than the width of the edit field area, the text field/group is scaling up so that all the text is revealed. However I don't want this to happen. If the text is longer than the edit field, I'd like it to simply disappear etc so the user has to scroll along the text themselves.
I'd like this because some text entries are quite long, and the edit field group is making other parts of the dialog too small to work with.
I've tried every combination of BFH_SCALEFIT flags etc that I can think of (including NULL) with both the groups and the edit field, but can't seem to find the right combination. I'm not aware either of any function to use elsewhere (e.g. in the Init()) to keep it under control.
I'm assuming (dangerously) that this is indeed possible to constrain the width of a text edit field in a dialog. I've managed to do it in the AM in the past. Does anyone know the right flags to use in a dialog scenario like this?
GroupBegin(ID_GROUP_MAIN,BFH_SCALEFIT|BFV_SCALEFIT,1,0,"",NULL,0,0); GroupBegin(ID_GROUP_GROUP,BFH_SCALEFIT|BFV_SCALEFIT,3,0,"",BFV_GRIDGROUP_ALLOW_WEIGHTS,0,0); GroupBegin(ID_GROUP_BROWSER, BFH_SCALEFIT|BFV_SCALEFIT,1,0,"",NULL); GroupBegin(ID_GROUP_BROWSER_DIRECTORY, BFV_SCALEFIT,1,0,"",NULL); GroupBegin(ID_GROUP_BROWSER_PATH, NULL,3,0,"",NULL); AddEditText(ID_GROUP_BROWSER_ADDRESS, NULL,0,0); GroupEnd(); GroupEnd(); GroupEnd(); GroupEnd(); GroupEnd();
The above layout is a re-enactment (!) of what I have that's relevant to the edit text gizmo. Some groups can be swapped and hidden (including the entire browser group).
Finding the right flag combinations for gadgets etc. feels like fumbling around in the dark at times!