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

PB80 TV Control Redraw Bug

Status
Not open for further replies.

MFISH

Programmer
Apr 23, 2003
3
NZ
PB80 TV Control Redraw Bug. It appears that if you turn the redraw off and then on again when there are no TV items in the TV, the first item added is not displayed until either another item is added or a redraw is issued after the item is added. This causes a problem when there is only one roottreeitem in the TV which has not been expanded. The corp_u_tvs.of_reset() function calls the setredraw(false), removes the items and then calls the setredraw(true) causing problems if only one tv item is added (hidden).

Any ideas on a fix?
 
At the end of your TreeView processing, POST a redraw command.

Example: At the end of the SelectionChanged event, add the following code:

tv_1.POST.SetRedraw (TRUE)


Olan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top