BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-25-2008, 07:05 AM   #1 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem while moving focus horizontally in GridControl

Please Login to Remove!

Hello All,
How To - Create a screen with stationary headings
DB-00510
Livelink - Redirection
I want to develop a GridControl in BB. So my grid control will take numer of rows and column as parameter, and
it will draw the Grid(Table) accordingly. To develop the Grid Control I refered this Knowledge Base Article.
So, now I am able to show the Grid by using above KB. But Now my problem is while moving from one field to other field,
the focus doesn't move accordingly. I mean as per above KB, when I try to move focus from Data 0,0 to Data 1,0 the focus
moves to the field which is at bottom bottom of the Column 1. When I move my trackwheel vertically it works fine.
But problem is while moving focus horizontally.
What should I do in my code to move focus horizontally?.
I tried to use moveFocus() method but it doesn't worked. So, experts please guide me here.


Thanks
Offline  
Old 09-02-2008, 07:36 AM   #2 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello All,

I just try to clarify my point here,

As, I am developing the Grid Control, it is having one Horizontalmanager for Header display,
And the same number of vertical manager as the number of columns in the Grid. So, for, 5 columns I will have 5
vertical manager and I am adding these managers to a Horizontal manager, and adding this Horizontal manager to
a main Vertical Manager. And finally adding Header Manager and main Vertical Manager to screen.

So, when my screen contain only one Field i.e. Grid Control it is working OK. And vertical scrolling working properly.
But, when my screen contains some other fields labelField, editfields at top.
And below that if I placed my Grid Control, let's say at middle of screen, first time it looks OK, but when I try to
scroll it vertically, eventually it takes the area of entire screen.
I just dont want this to happen. So, If I am placing my Grid Control at center of screen then when I scroll it vertically
it should go only till height of screen and its base position should not change, i.e. it should remain at center of screen.

I am using sublayout method here to do this task. But, not able to got it working.
Can anyone please help me here.

Thanks...
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.