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.
Comments
Post a Comment