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!

ComboBox causes objects to disappear with Themes=.T.?? [vfp 9.0]

Status
Not open for further replies.

Goofus828

Programmer
Nov 9, 2005
127
US
Hi all,
I have a simple form with a grid, 2 command buttons, 2 text boxes and a ComboBox. The combobox uses a select statement to join 2 tables and display 3 columns of data.

Everything was working fine until I added that ComboBox.

I have it setup so that GotFocus of the combobox saves the ListIndex value. Then the Click of the combobox compares the saved ListIndex value to the current ListIndex. If different I set focus to an empty text box.

Now the weirdness starts, as soon as the Click of the comboBox fires, the 2 command boxes disappear! I have to mouseover for them to reappear and when I move off, they disappear again.

Now I think the culprit is THEMES!

If themes is off, this stuff works fine. If Themes is on, the command boxes disappear.

Is this a known bug? Microsoft KB was kind of vague about it and does anyone know if SP1 will fix this behavior?

Thanks for any input.
 
Is this a form that was originally created in FP2.x? If so, themes will definitely cause a problem.

Also, it's a little strange to be doing much in the Click of a combobox. Typically, you use InteractiveChange or LostFocus to respond to user choices.

Tamar
 
Hi Tamar, Built in VFP 9.0.

I'm using the click method so that when the users selects the item they want it poplulates one of the text boxes automatically.

That was the only way I could figure out how to do that.

 
Try moving your code to InteractiveChange and see if that solves your problems.

Tmar
 
File this one under BoneHead of the year.

I had a ?Chr(7) if the interactivechange of the 2nd text box failed to seek the record. The ?chr(7) was writting to the form and scrolling the objects up causing them to disappear. As soon as I set Allowoutput= .f. everything is fine.

[surprise]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top