setting extent using setExtent in blackberry -


i want make use of setextent() method in blackberry.

every time use setextent(), allocates space zero, 0 coordinate custom field paint extending field class.

i want when draw custom field (100,100), should allocate space (100,100) , not (0,0).

my code looks like:

protected void layout(int width,int height) {     setextent(100,100); } 

please me out solutions.

what appear trying doesn't sound idea. 100 pixels useful measure on 1 device, 100 pixels on 9300 on 1/3 of height of screen, on 9800 no near that. recommend not use fixed pixel sizes blackberry development.

that said, if want field start @ position 100,100, should use setpositionchild field in field's manager.

before start leaping off attempting this, recommend review following: http://supportforums.blackberry.com/t5/java-development/how-to-extend-manager/ta-p/446749 , http://supportforums.blackberry.com/t5/java-development/create-a-custom-layout-manager-for-a-screen/ta-p/442990

but perhaps best options might explain trying achieve , might able suggest alternative.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -