Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Raiden
Posts: 490
Registered: ‎07-16-2008
My Device: Not Specified

How to move PopupScreen

Hello guys'

 

Have a nice day. I need to move the PopupScreen for my application. I think needs the setPosition (of Field class) or  fordo this setPositionDelegate ( of Screen class). But I don't know how to use. 

 

If you have a knowledge, plz share me. 

 

Tnx

Please use plain text.
Developer
myraddin
Posts: 405
Registered: ‎09-12-2008
My Device: 9000 9810

Re: How to move PopupScreen

[ Edited ]

You can override sublayout method:

 

 

public void sublayout(int width, int height)

{

super.sublayout(width, height);

setExtent(101, 102);

setPosition(0, 103);

}

 

This code also sets extent (i.e.,  size).

Message Edited by myraddin on 09-12-2008 04:11 AM
Message Edited by myraddin on 09-12-2008 04:12 AM


"Listen carefully, I shall say this only once"
Please use plain text.
Developer
Raiden
Posts: 490
Registered: ‎07-16-2008
My Device: Not Specified

Re: How to move PopupScreen

Tnx man'

 

I can set position by the defined using this method. But I want to move PopupScree. So, I don't know how to use this method for moving the screen. 

 

Tnx again.

Please use plain text.
Developer
myraddin
Posts: 405
Registered: ‎09-12-2008
My Device: 9000 9810

Re: How to move PopupScreen

Unfortunately, since setPosition() should be called within sublayout() you can try fiddling with the sublayout() method but I tried and had no luck :smileysad:


"Listen carefully, I shall say this only once"
Please use plain text.