DLG horizontal centering not working
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/11/2012 at 20:14, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform:
Language(s) :---------
Hi Folks,
I have the following text item in a dialog group:
AddStaticText(DLG_LBL_Text, BFH_SCALEFIT|BFV_SCALEFIT|BFH_CENTER|BFV_CENTER,0,0,"Centre Text", BORDER_NONE);
It scaled and centred vertically, but it's not centering horizontally. Nothing is centering horizontally. Why might this be?
Regards,
WP. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/11/2012 at 09:22, xxxxxxxx wrote:
Hi,
You have to use BFH_SCALE|BFV_SCALE instead of BFH_SCALEFIT|BFV_SCALEFIT. Fit and center gadgets isn't possible.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/11/2012 at 17:11, xxxxxxxx wrote:
Thanks Yannick, that seems to have solved the problem.
WP. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/11/2012 at 21:32, xxxxxxxx wrote:
Just another thing, how come the following group isn't sized correctly?
GroupBegin(DLG_GROUP_CENTER,BFH_SCALE|BFV_SCALE|BFH_CENTER|BFV_CENTER,0,0,"",NULL,640,380);
GroupBorderNoTitle(BORDER_THIN_IN);
AddStaticText(DLG_LBL_CENTER, BFH_SCALE|BFV_SCALE|BFH_CENTER|BFV_CENTER,0,0,"Centre Group",BORDER_NONE);
GroupEnd();
I took a screen cap of the dialog into PS, and the black thin line around the group is 384 by 468?
WP. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/11/2012 at 03:25, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Just another thing, how come the following group isn't sized correctly?
GroupBegin(DLG_GROUP_CENTER,BFH_SCALE|BFV_SCALE|BFH_CENTER|BFV_CENTER,0,0,"",NULL,640,380);I think the group should be created with the flags BFH_SCALEFIT|BFV_SCALEFIT. Scale + fit ensure the group is scaled + resized automatically with the dialog.