Thanks Sir
,
But have you an answer how is it working in the other List-Field.
Example attached
-------------
also it will be a great help if you get me an example how have you used
ObjectListField, (maybe you have used LabelField I presume).
--------------
My problem is that the listitems have been added, through alert I have been able to get these items displayed. Only the Items are not visible.
in the alert i have also displayed the following:
Dialog.alert(strObj+","+getVisibleWidth()+","+getV isibleWidth());
and it is reporting :"ItemName,0,0"
that means the height and width of the screen, both are 0
---------------
How to set the height and width:
I have used :
setFocus and setExtent for a try but the either one is giving
"modalScreen called by non event thread exception" or something like that
then:
// setPosition(x, y);
// setRowHeight(50);
// layout(0, 0);
then:
//protected synchronized void layout(int width, int height) {
// // Update the cached font in case it has been changed.
//
// // Calculate width.
// width = Math.min(width, getPreferredWidth(this));
//
// // Calculate height.
// height = Math.min(height, getPreferredHeight(this));
//
// // Set dimensions.
// setExtent(width, height);
// }
but to my surprise the code control is not reaching the
drawListRow() implemented function
-------------
Regards
----------