Help with TLF application and few questions
Hi guys,
I'm a newbie with TLF trying to creating a desktop based gadget for contacts management using TLF. Contacts are received from a server.
TLF is used for displaying contacts.
I have encountered few problems . So i needed some help.
My layout is as follows
Textflow container size is 700 X 600
Each contact has the following structure
Each <Div> holds data of one contact.
PSEDO MARKUP XML is like.. (but i have not used the xml..i have created this in through code using Div element,paragraph element
and span elements etc)
<DIV>
<P>
<SPAN>USER NAME (TEXT) </SPAN>
</P>
<P>
IMAGE (Inline Image)
<P>
<P>
<SPAN>USER DESCRIPTION(TEXT) </SPAN>
</P>
</DIV>
Column layout is 2
Ideally i want to show 4(can vary) contacts at a time..please see image.
I have added the contacts to Textflow and set the container size to 700 X 600 and coulmns to 2.
Problem:
Sometimes when i try to fill contact details eg : if USER DESCRIPTION is too large, the text overflows
from 2nd column,and it gets overlaps with the first contact in first column
example in image link if 4th contact description data is very large.
whenever dynamic text is larger,text flows.
Also i dont want to use an individual textflow for an contact as it will be difficult to manage?
(or would it be easier??)
Ideally a single flow holds multiple contacts is needed.
Questions:
1] How do i avoid the overflow?
Is there a way to know if the textflow is full with text or is going to overflow ?
Even if i can know if the next contact's data is going to overflow,i can put it on to next page
2] Is the way to select individual <DIV> elements .programatically. ie: traverse the textflow.
I want to be able to search contacts based on it. Username and user description
So i want to iterate each div and go thr the <P>/<SPAN> nodes of username and userdescription and search text in it.
3] Also i want to be able to draw a border around each <DIV> element ..thin red border.
I have been refering the columns example.
Please help .
Thanks in advance.
Amit
