Doubt in List Element
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mahen_Dharan
Posted On:   Monday, April 12, 2004 05:10 AM

Hi guys, I have a doubt in Display.LIST_ELEMENT. My Code. List lst1 = new List("Main Menu",List.IMPLICIT); lst1.append("Image1",Image.createImage("/pic1.png"); lst1.append("Image2",Image.createImage("/pic2.png"); display.setCurrent(lst1); I need the output : List Element Height should depend on Image Height. So i changed the code display.getBestImageHeight(1); display.setCurrent(lst1); Suppose to get the output what i need. But its not getting. Could any one help me out ? With Regards, Mahendran    More>>

Hi guys,
I have a doubt in Display.LIST_ELEMENT.
My Code.
List lst1 = new List("Main Menu",List.IMPLICIT);
lst1.append("Image1",Image.createImage("/pic1.png");
lst1.append("Image2",Image.createImage("/pic2.png");
display.setCurrent(lst1);
I need the output :
List Element Height should depend on Image Height.

So i changed the code
display.getBestImageHeight(1);
display.setCurrent(lst1);
Suppose to get the output what i need.
But its not getting.

Could any one help me out ?

With Regards,

Mahendran

   <<Less

Re: Doubt in List Element

Posted By:   Vasily_Isaenko  
Posted On:   Friday, April 16, 2004 12:23 AM

Hi Mahen,

getBestImageHeight method gives you only a hint what the
best image height is. However, you are free to use images
of other heights. If your application is bundled with several
images with different sizes then calling getBestImageHeight
method you could choose the most appropriate image to display.

Good luck, Vasily
About | Sitemap | Contact