Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

treeview text limit

Status
Not open for further replies.

lookashp

Programmer
Dec 2, 2009
4
PL
Hi,
I have the issue with treeview control in PowerBuilder v10.2.1
My treeview is populated with items from the database. Each item consists of text and pictures. Problem is that amount of this text can be over 100 characters byt only first 50 of them are shown. The rest is cut.

How to let TreeView control show the whole item text?
 
I'm using powerbuilder 10.0.1 and your problem is not happening in that versión. I see the full text.

How are you populating the treeviewitems? couldn't it be that the text you're assigning is cut already to a 50 positions máximum?


regards,
Miguel L.
 
I've not had this issue before either. (PB 10.5) How are you loading the TreeView?
 
I simply made a small example in which I inserted 2 items using a standard visual object (being a treeview) and coded the constructor event:

this.InsertItemLast ( 0, '123456789012345678901234567890123456789012345678901234567890', 1)
this.InsertItemLast ( 0, 'esto también es un texto un poco más largo 123456789012345678901234567890123456789012345678901234567890', 2)

the pictures in index 1 and 2 were simply from the list in the properties (not selected by browsing a picture somewhere on disk).

Could it have something to do with the level of the items?




regards,
Miguel L.
 
Problem was hidden inside the function which moves concepts from one place to another in my database. It returned varchar(50) :) . Solved
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top