custom list field design problem - blackberry

I have added three custom listfield on a single screen which are separated by some space and labels. I have also drawn a roundrect on each row.
The problem that i am facing is, whenver the first row of each listfield is diaplayed off the screen, the bottom line of round rect of that field also disappears. And this is happening for all the listfields.
I have also invalidated all the listfields during focus and unfocus but the same problem is occurring.
please suggest something..............

Related

Textfield Connecting and Labels

I have always had this problem and could never figure out how to solve it. My issue is that I want to produce a similar thing as the photo: Image
I want to be able to have text fields connect like this and be able to have a 'label' on the left while still being able to input on the right. Any help is greatly appreciated.
If I am not mistaken, I think that what you want is to have a label on the left and a textview on the right. The image you have supplied looks like the textViews and labels reside within a UITableView controller as static cells. What they have most likely have done here is simply extended the label from the left to the centre and the textview from the right to the centre, such that each takes up half the cell (and added constraints). Then you can set the text alignment to left for the label and right for the textview. The final thing you should do is get rid of the border of the textview, which can be found in the attributes inspector and is called Border Style. You want to set it to the far left option, like this:
As the background of the cell is white and the textview's also, you shouldn't need to change it, but if you do there is an attribute for that a bit further down that you can have a play with.

Tablix inside Rectangle inside Textbox not visible when report renders

I have built a report with a list of caveats at the end within a text box. Inside this list I need to display a table of static text. The only way I have found to show the table is to put a rectangle inside the text box and place the table inside the rectangle. However when I preview the report the table does not show. Also when in design mode if I click outside of the rectangle into the text box both the rectangle and table disappear and only reappear when I use the scroll bar. I have checked that both the rectangle and table are visible and have tried moving to front and moving back but it does not change. Can anyone point me in the right direction please.
To help with explanation I have added screenshots:
Image 1 - showing table in rectangle in text box in design view
Table 2 - showing result of preview where table should show
If I had been thinking straight and built this from scratch I would never have tried to do it the way I did. I suddenly realised that the answer was simple. Put a rectangle first then populate it with 2 textboxes and put the static text table between the 2 textboxes. The rectangle holds it all together and can have a border if required.

How to shift drawn text to top on UIView?

I am drawing text on a UIView using core graphics, the restriction with this is that when the UIView is fully drawn to the end i can't shift all drawn text above to create empty line at the bottom to draw new text. I don't want to use the UITextView and UITableView.
A visual explanation:
Suppose a have a view as below to draw the text-
So I am on the last line in this view and when this line is completely filled, I have to shift to one line below which is not there. What I want to do is to shift the whole screen text one line up (shifting out the first line from screen), to make space for new line.
This view is actually a larger one to provide scroll back, but to explain the situation I just mentioned so.
Is there any way to do so? Please suggest.
If you want to provide scroll back, it means that you don't want to shift the whole text up to make space for one more line. Because in doing so you will lose the first line.
What you need to do is resize the view and make it bigger, this way you have more space to draw some more lines.
I would advise you to use a UITableView instead. It's too much work to draw the text by yourself and provide scrolling and all for no apparent advantage. Maybe just so you can learn how to do it :)

TVirtualTreeView with rows of variable height: scrolling artefacts

I am using the VirtualTreeView together with the OnMeasureItem event to display rows of variable size. The problem is that the event seems to be called only if a row is painted (following the virtual paradigm). But this leads to the scrollbar being displayed incorrectly. If I scroll to the bottom (by dragging the scrollbox with the mouse, not clicking the scroll buttons at the top or bottom), not the last row is displayed (which is what I would expect), but some row in the middle. After that, the scrollbar is updated and I can scroll further down. It seems as if the component uses the DefaultNodeHeight for its scrolling calculations. But since my rows have variable height, I cannot specify a DefaultNodeHeight that would lead to correct results. Option toVariableNodeHeight is enabled.
Has anyone experienced this before and maybe found a workaround? Or am I doing it wrong?
You need to set DefaultNodeHeight to the maximum value you will be using and OnMeasureItem event set custom height value for the current node. Similar issue was described here.

notification of editing done in uitableview

So I have some labels in a custom UITableViewCell but heres the thing they are in a line, but when editing begins all of the labels jumble together. I have two of the labels have an autoresizing margin and it works if all of the labels have less then the actual bounds of the text label. So I tried some things, and thought I could take the width of the first text label down when editing begins by having tableView:canEditRowAtIndexPath move the width, but then I am never notified if the editing is finished (user hits done button) and then can't move the width back and then the text label gets all screwy and all of these labels getting jumbled. I would just like to know the best way in order for me to not have the labels get jumbled (auto shrink/autoresize) and then have them revert to their original position.
Thanks in advance, if needed I will upload some code to see what I have done so far

Resources