Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
08-05-2012 10:13 PM
Solved! Go to Solution.
08-06-2012 05:04 AM
This screen is a scrollable verticalfieldmanager that holds the activerichtextfield , i am using a custom tablerowmanager to draw the components , however the links should be focusable with custom background colors , how can i achieve that ? , also how do i create click events for these hyperlinks , thanks peter.
08-06-2012 05:47 AM
"i am using a custom tablerowmanager"
I am betting this manager actually uses ListField. This approach means that the Fields in the Row are only used for layout and painting, they are not used in the actually screen itself.
If you want focusable and selectable links in this case you will have to remove the ListField and add the Rows to a real Manager.
08-06-2012 05:54 AM
08-06-2012 06:49 AM
"please I ask r u saying I should develop a custom manager that will behave like a listfield"
Sort of. Exactly what you need will to do will depend on your requirement.
But the point here is that ListField just uses these Fields to 'paint' and nothing else. So you need to actually use these Fields on your Screen.
I think you might be able to get away with just adding the Rows to a VerticalFieldManager. Then you will have to move the background processing processing code from the drawListRow into the paintBackground for the Row. Give this a try and see how it goes.
But you will loose functionality like the performance (which may be quite bad if you have a large number of Fields) and the ability to easily determine the selected row. If these are important, you might be better to remove the Link functinoality and provide a detail screen for each row that does use an ActiveField.
So short answer is I don't know what the best solution for you is.
But please don't post your code here and ask me or anyone else to tell you what the best answer is. It will be too complicated to understand easily and we don't know your requirements. So think about it yourself, have a go at something and see what happens.
Here is more on writing your own manager:
This is the standard link, but I don't think this is easy to understand:
08-06-2012 08:44 AM
Thanks peter , the truth is the field is much more like a twitter feed , we are going to be having a whole lot of messages as posts from different users , i think this should be possible because twitter uses the same thing .i really need a roadpath to achieve this .
08-06-2012 09:11 AM - edited 08-06-2012 09:30 AM
Twitter was written by RIM, so they know how to write this sort of stuff and do it optimally. I imagine there are quite few lines of code involved.
As a start, just add the Row Field to a VFM as I suggested. Take it step at a time from there, fixing the things that are broken.
I would start with a single 'Row' that you can easily recreate. Then duplicate it to add additional Rows. When you have this working for multiple screens of data, then start looking and getting real data in.
08-08-2012 04:28 AM
Thanks peter ,
It did work the way you suggested i added the tablerowmanager directly to the scrollable verticalfieldmanager and the hyperlinks are now showing ,however i still face an issue which is the activerichtextfield text contensts they do not align properly or do not show completely like the way twitter feeds will show i have tried modifying the sublayout parameters for the field in my tablerowmanager and also added a layout for my activerichtextfield but i still face the same issue , i will really need your help on this peter any idea why it would behave like that ?, i have attached a picture to show my text aligning problem , would love it to display all the contents of the text and properly aligned , thanks peter.