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!

Combobox Display

Status
Not open for further replies.

StormbringerV

Programmer
Nov 21, 2000
15
US
I have a form with some tabs used for specific entries (sstab). On each of the tabs I have a combox allowing them to choose a specific code whose description is then loaded from a table. When the form itself is loaded and the current Data retrieved, the info is displayed correctly on the initial tab. BUT, once you choose another tab and then return to the original tab, the combobox information is.. sortof highlighted out. The information is there, correct, and displayable (I sat a textbox beside it displaying the same info and it displays correctly). Clicking on the combobox displays the correct information in the list. Its almost as though the tab(s) themselves are having trouble repainting the combobox info.

Any ideas anyone?

Thanks

Dave
 
Dave I noticed that you also use the Flex Grid control. For a more reliable Combo Box, i use the flex grid and simply modify it's use as a combo box. This may be a bit too much coding for you though.

As for just fixing the combo box display, you could find out whether it has actually lost the ListIndex pointer. i.e. It doesn't know where on the combo box it should be. If it has lost the pointer you could save the pointers in global variables and everytime the change tab is executed, reset the ListIndex to the global variable value.

If it doesn't loose the index a refresh might jsut do it. Craig, mailto:sander@cogeco.ca

"Procrastination is the art of keeping up with yesterday."

I hope my post was helpful!!!
 
Thanks again Craig. I believe the pointer is OK - when I click the combobox it's sitting on the correct Item in the pulldown. I hadn't thought about the refresh.. duh. :)

Thanks again buddy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top