BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-25-2008, 06: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, 06: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

Genuine OEM Dell Ink Cartridge Color Black 7Y745 7Y743 Lot Of 4 +
$32.0
Genuine OEM Dell Ink Cartridge Color Black 7Y745 7Y743 Lot Of 4 + pictureDell B126X Black Toner Cartridge DRYXV - GENUINE - SEALED Toner - OEM -FAST SHIP
$39.99
Dell B126X Black Toner Cartridge DRYXV - GENUINE - SEALED Toner - OEM -FAST SHIP pictureOEM Dell PA-12 Slim Auto-Air AC Adapter Travel Kit DA65NS3-00 DK138 0DK138
$9.0
OEM Dell PA-12 Slim Auto-Air AC Adapter Travel Kit DA65NS3-00 DK138 0DK138 pictureDell Inspiron N5040 OEM LCD Front Cover Bezel 0mr95c
$17.0
Dell Inspiron N5040 OEM LCD Front Cover Bezel 0mr95c pictureDell 1720 MW558 High Capacity Toner Cartridge -OEM Sealed (CC-EB13)
$79.99
Dell 1720 MW558 High Capacity Toner Cartridge -OEM Sealed (CC-EB13) picture






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