07.04.2010, 20:05 | #1 |
Участник
|
kamalblogs: Setting up Form size during runtime in Dynamics Ax
Источник: http://kamalblogs.wordpress.com/2010...n-dynamics-ax/
============== Sometime we change or construct a form at runtime. In those situation we end up modifying/setting the width and height at run time itself. there is one thing you need to keep in mind if you are doing that. Don’t use the following way to set the size of the controls in forms tabcontrol.width(FormWidth::ColumnWidth); tabcontrol.height(FormHeight::ColumnHeight); tabcontrol.width(100); tabcontrol.height(200); then nothing happens for the Form. The form size is actually set to zero. Instead you must do it the following way…. For Auto/ColumnWidth, height properties, set it like this tabcontrol.widthMode(FormWidth::ColumnWidth); tabcontrol.heightMode(FormHeight::ColumnHeight); For setting manual values set it like this tabcontrol.widthValue(100) tabcontrol.heightValue(200); I’m not sure for what reason it is done like this Источник: http://kamalblogs.wordpress.com/2010...n-dynamics-ax/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|