How to get coordinates of field within the visible screen when scroll is used? ( Blackberry, BB, Java ) -


1)the field placed in manager has fixed position in manager.

2)when user scrolls screen field moving along visible screen, (although position within manager remains fixed).

how these visible-screen-coordinates of field when user scrolls view , sets focus on field?

p.s. might called 'absolute coordinates'

thanks!

not sure if can you. have looked @ getfocusrect(xyrect xyrect)? when child field gets foucs, retreive extent of manager's focus region. api says that

getfocusrect

public void getfocusrect(xyrect rect) retrieves current extent of focus. invoke method retrieve extent of current focus region. notice coordinates expressed local manager, , take scrolling account (that is, coordinates local manager's visible region, not virtual region).

overrides: getfocusrect in class field parameters: rect - rect contain extent of focus.

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/manager.html#getfocusrect(net.rim.device.api.ui.xyrect)


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -