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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Boxes and FTrees

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi Folks

A couple issues with Ftree and Combo Boxes. First the Combo Box: My text gets slightly cut off at the bottom of the box (when it's sitting there without the list dropped down) - things like "g" have the bottom of their tale slightly cut off. I can't fix this by chnaging the text size or the combo box height (don't seem to be able to change that). Any ideas?

Now the Ftree: The text on leaves on a branch that is opened get cut off (again, just barely) on the right hand side where they hit the scrollbar. It's probably only about one eighth of a character width, but it's noticeable - I'd like to put some padding there. Any thoughts?

Thanks,

Ben
 
mycombo.setStyleProperty("textSize",10);

changes the text size but i think you have that.

to get at the height

edit the flabel component

find this line

this.labelField._height = this.labelField.textHeight + 2;

change the 2 to some larger number and the height inceases
 
Hi Bill

That didn't seem to do the trick, but perhaps I am missing something. Do I have to change the textHeight off the default to get the combobox size to increase? It seemd to me that no matter what the size of the text the lower part of a tail on a "g" was getting cut off. Your idea looked hopeful, but doesn't seem to have any discernable effect - I even changed it to extreme numbers like 200 to try to get some change, and it didn't seem to make any difference. Perhaps I'm missing some method of triggering it?

Thanks,

Ben
 
Thanks Bill

I'll look into it - I appreciate your help.

B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top